Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing as guest, Virtualbox OSX Mojave, Ncurses fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
trimodephone
n00b
n00b


Joined: 15 Sep 2020
Posts: 1

PostPosted: Tue Sep 15, 2020 7:50 pm    Post subject: Installing as guest, Virtualbox OSX Mojave, Ncurses fails Reply with quote

Installing fresh on virtualbox 6.1 as a guest through OSX Mojave.
Emerging world fails on ncurses-6.2-r1 with the error
Code:
!!! PORTAGE_BINHOST unset, but use is requested.
!!! PORTAGE_BINHOST unset, but use is requested.

when running
Code:
emerge -pgq '=sys-libs/ncurses-6.2-r1::gentoo'


Trying to emerge it directly results in a portage error
Code:
ValueError: embedded null byte


I unfortunately can't dump full output, virtualbox absolutely refuses to share clipboards without first installing guest addons on OSX, and I can't install that without getting the damn thing set up first, which it won't let me do because I can't even finish emerging @world
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2630

PostPosted: Tue Sep 15, 2020 9:33 pm    Post subject: Reply with quote

This seems to be a user issue which can easily be corrected. The primary one here seems to be following some sort of guide that is either assuming familiarity or is faulty in some way. Not to worry, we can set this right!
Quote:
Code:
emerge -pgq '=sys-libs/ncurses-6.2-r1::gentoo'

There are a few issues here. -p is short for "pretend" as in do not actually do this. It is unlikely your attempt is failing. It just doesn't have anything to do. -q is "quiet" which suppresses output and is generally not what you want. If anything you want "-v" for verbose to get more helpful output. "-g" tells portage to get a binary package from the binary host you set up and you populated with packages already built. It doesn't exist yet and you probably don't want one.

The second issue to address is the specific version of ncurses. This is not desirable in 99% of cases. Emerging the package in this way will prevent it from ever being upgraded. Again, highly unlikely you actually want to do that.

A corollary here is that ncurses shouldn't need to be explicitly installed. It should get pulled in by whatever actually needs it. Doing so tends to make life difficult down the road.

What you actually want to do here is emerge -a1 sys-libs/ncurses This will cause portage to see what it would do and then ask you to confirm before executing the changes. That is the "-a" flag for "ask." The -1 is short for oneshot which will prevent it form being added to your world file as clutter. But as I said before you don't actually need to do this at all.

All you need to do is run emerge -av virtualbox-guest-additions to install the guest additions and set them to run. There is also some minor setup.

Highly recommended reading:
1.The wiki on virtual box
2.Gentoo Handbook
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum