Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble setting up the locale
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
Ant0115
n00b
n00b


Joined: 15 Sep 2017
Posts: 10

PostPosted: Sun Sep 17, 2017 7:52 pm    Post subject: Trouble setting up the locale Reply with quote

Hello,

I am at the part of the install where I need to configure my locale, which is:

en_US ISO-8859-1
en_US.UTF-8 UTF-8

so, I made a nano file at /etc/locale.gen that contains only the two locale codes listed above.

When I go to the next step of the install:

Code:
root# locale-gen

I get this:
Code:
(chroot) sysresccd / # nano -w /etc/locale.gen
(chroot) sysresccd / # locale-gen
bash: locale-gen: command not found
(chroot) sysresccd / # locale -a
bash: locale: command not found


I am not sure what to do, I read the Localization/Guide in the Gentoo Handbook but I still cannot find an answer.
Does anyone here have any idea of what I can do to fix the problem? I would appreciate ANY help at all
Thank you

[Moderator edit: added [code] tags to preserve output layout. -Hu]
_________________
Best Regards,

Ant
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16620

PostPosted: Sun Sep 17, 2017 10:18 pm    Post subject: Reply with quote

Seems strange that it wouldn't be in your path, not sure why that would be.

I would try running the command by using the full path, which should be at "/usr/sbin/locale-gen".
_________________
Find them! Fix them! Fight them! Finish them! -- GEN Matthew B. Ridgway
Back to top
View user's profile Send private message
helecho
Apprentice
Apprentice


Joined: 26 Dec 2016
Posts: 178

PostPosted: Mon Sep 18, 2017 6:14 am    Post subject: Reply with quote

What stage archive (tarball) do you use? Some archives are based on C standard library (other than glibc) that does not provide locale-gen.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16241
Location: here

PostPosted: Mon Sep 18, 2017 6:19 am    Post subject: Reply with quote

What stage3 you used (post full name of file)?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
HungGarTiger
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2014
Posts: 122
Location: /nz/auckland

PostPosted: Mon Sep 18, 2017 6:27 am    Post subject: Reply with quote

Did you successfully chroot into your new installation?

I'm asking because
Quote:
(chroot) sysreccd / #


Wouldn't be the outcome of the $PS1 on a new system or by following the guide.
Back to top
View user's profile Send private message
Ant0115
n00b
n00b


Joined: 15 Sep 2017
Posts: 10

PostPosted: Tue Sep 19, 2017 1:24 am    Post subject: here's the tarball I downloaded Reply with quote

fedeliallalinea wrote:
What stage3 you used (post full name of file)?


Code:

root@sysresccd /root % mount /dev/sda4 /mnt/gentoo
root@sysresccd /root % cd /mnt/gentoo
root@sysresccd /mnt/gentoo % wget http://distfiles.gentoo.org/releases/amd64/autobuilds/20170907/stage3-amd64-nomultilib-20170907.tar.bz2


this is the tarball that I downloaded above^^

and HungGarTiger, this is my first installation attemp at gentoo. the only other distro I have used is Debian, which is ultra-easy to install (no chrooting at all). That being said I am not entirely sure if I am properly chroot'ing, nI thought I was until you made your post... now Im doubting myself, lol... I am using SystemRescueCD, not the minimal install cd if that makes any difference in the way it would appear onscreen?
_________________
Best Regards,

Ant
Back to top
View user's profile Send private message
HungGarTiger
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2014
Posts: 122
Location: /nz/auckland

PostPosted: Tue Sep 19, 2017 3:20 am    Post subject: Re: here's the tarball I downloaded Reply with quote

Ant0115 wrote:
fedeliallalinea wrote:
What stage3 you used (post full name of file)?


Code:

root@sysresccd /root % mount /dev/sda4 /mnt/gentoo
root@sysresccd /root % cd /mnt/gentoo
root@sysresccd /mnt/gentoo % wget http://distfiles.gentoo.org/releases/amd64/autobuilds/20170907/stage3-amd64-nomultilib-20170907.tar.bz2


this is the tarball that I downloaded above^^

and HungGarTiger, this is my first installation attemp at gentoo. the only other distro I have used is Debian, which is ultra-easy to install (no chrooting at all). That being said I am not entirely sure if I am properly chroot'ing, nI thought I was until you made your post... now Im doubting myself, lol... I am using SystemRescueCD, not the minimal install cd if that makes any difference in the way it would appear onscreen?



If you are mounting the /proc, /sys and /dev file systems correctly then the command
Code:
chroot /mnt/gentoo /bin/bash
will work without a hitch. If you've followed the guide to the letter the PS1 will read
Code:
(chroot) root / #
from memory.
Back to top
View user's profile Send private message
Ant0115
n00b
n00b


Joined: 15 Sep 2017
Posts: 10

PostPosted: Tue Sep 19, 2017 6:01 am    Post subject: I'm chroot'ed into my new environment Reply with quote

HungGarTiger,

Thanks for the tip, I'm chroot'ed in to my new environment and the install is moving forward again, I will update either when I have another question, lol... or I successfully finish the install.
_________________
Best Regards,

Ant
Back to top
View user's profile Send private message
HungGarTiger
Tux's lil' helper
Tux's lil' helper


Joined: 04 Feb 2014
Posts: 122
Location: /nz/auckland

PostPosted: Tue Sep 19, 2017 6:12 am    Post subject: Re: I'm chroot'ed into my new environment Reply with quote

Ant0115 wrote:
HungGarTiger,

Thanks for the tip, I'm chroot'ed in to my new environment and the install is moving forward again, I will update either when I have another question, lol... or I successfully finish the install.


This may also solve the problem you were having in your own ther thread btw.

Ask, don't forget to mark your thread [solved] as this helps other people when they are searching for answers to the same problem
Back to top
View user's profile Send private message
helecho
Apprentice
Apprentice


Joined: 26 Dec 2016
Posts: 178

PostPosted: Tue Sep 19, 2017 10:26 am    Post subject: Reply with quote

Ant0115, you may be interested by the alternative installation guide? In fact, SystemRescueCD is not an official installation media.

Could you verify again your stage3 tarball is the right? (emerge --info | head)
Back to top
View user's profile Send private message
Lysio
n00b
n00b


Joined: 20 Jun 2017
Posts: 5

PostPosted: Wed Sep 20, 2017 1:10 pm    Post subject: Reply with quote

helecho wrote:
Ant0115, you may be interested by the alternative installation guide? In fact, SystemRescueCD is not an official installation media.

Could you verify again your stage3 tarball is the right? (emerge --info | head)


For me, SystemRescueCD worked without the special installation instructions of the "installation alternative guide".
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