Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Locale-gen, chroot & missing share/i18n/locales/
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
MJLC79
n00b
n00b


Joined: 12 May 2017
Posts: 2

PostPosted: Fri May 12, 2017 7:26 am    Post subject: [Solved] Locale-gen, chroot & missing share/i18n/locales Reply with quote

I'm pretty new to linux and trying to get my familiarity up via installing gentoo (I'm following https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base). I've had a look around at other posts but cant find an issue matching the same parallel set of symptoms I'm seeing... apologies of I'm posting something already here.

I've got to the same part of the build each time (several) and failed - the issue I'm having is getting the 'locale-gen' command to execute successfully. Details of the problems I see are below.

(Logged in as chroot) I'm unable to run the following commands:

(chroot) livecd / #nano -w /etc/locale.gen <-- This Displays an empty file.
and
Code:

(chroot) livecd / # locale-gen
bash: locale-gen: command not found

when I log out of chroot I can run the commands as expected but I'm fairly certain I want to remain chroot for this.

No doubt it's related to whatever mistake I keep repeating here but another thing I've also noticed is '/usr/share/zoneinfo' also didn't exist until I looked around forums and found the emerge command 'emerge sys-libs/timezone-data' below. The folder structure & respective timezone's populated after that.

when I'm logged out of chroot and logged in as root, despite getting further it still complains about missing the charmaps folder...
Code:

(chroot) livecd / # exit
exit
livecd gentoo # whoami
root
livecd gentoo # nano -w /etc/locale.gen
livecd gentoo # locale-gen
 * Generating 2 locales (this might take a while) with 1 jobs
 *  (1/2) Generating en_US.ISO-8859-1 ...
character map file `ISO-8859-1' not found: No such file or directory
cannot read character map directory `/usr/share/i18n/charmaps': No such file or directory                       [ !! ]
 *  (2/2) Generating en_US.UTF-8 ...
character map file `UTF-8' not found: No such file or directory
cannot read character map directory `/usr/share/i18n/charmaps': No such file or directory                       [ !! ]
 * Generation complete


Any help would be appreciated. Thanks in advance.

[Moderator edit: added [code] tags to preserve output layout. -Hu]


Last edited by MJLC79 on Sat May 13, 2017 10:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
fturco
l33t
l33t


Joined: 08 Dec 2010
Posts: 629
Location: Italy

PostPosted: Fri May 12, 2017 9:12 am    Post subject: Reply with quote

On my system /usr/sbin/locale-gen, /usr/share/i18n/charmaps and /etc/locale.gen all belong to package sys-libs/glibc. That's a pretty important package!
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Fri May 12, 2017 10:19 am    Post subject: Reply with quote

Like fturco said, they are provided by glibc
As this must be done in the chroot only, because you configure your system and you don't configure the livecd system ; and as glibc should be provided both by the stage3 (from the installing stage3 part) and when you update the system (the updating your @world set part)

It mean your error is not "the" error, but a symptom of an earlier problem.
You should also note that it's optional, if you just ignore that part and continue, the system will remain in english. But the real problem may stop you.
Back to top
View user's profile Send private message
MJLC79
n00b
n00b


Joined: 12 May 2017
Posts: 2

PostPosted: Sat May 13, 2017 10:39 pm    Post subject: Reply with quote

Thanks both for your assistance and responses. As suggested my mistake was made earlier on by selecting an incorrect tarball. I have been able to progress now without any of the manual lib inclusions I was having to troubleshoot my way through before and the process now successful as per the handbook instructions.

(Did not work)
http://distfiles.gentoo.org/releases/amd64/autobuilds/20170430/uclibc/stage3-amd64-uclibc-hardened-20170430.tar.bz2
http://distfiles.gentoo.org/releases/amd64/autobuilds/20170430/uclibc/stage3-amd64-uclibc-vanilla-20170430.tar.bz2

(Worked)
http://gentoo.osuosl.org/releases/amd64/autobuilds/current-stage3-amd64/stage3-amd64-20170504.tar.bz2

Thanks again guys.
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