View previous topic :: View next topic |
Author |
Message |
Police Dog n00b
Joined: 04 Aug 2009 Posts: 49 Location: UK
|
Posted: Tue Aug 04, 2009 12:28 pm Post subject: Emerge issue |
|
|
So I thought I'd move from Fedora to Gentoo, mainly just for something to occupy my time. The first few times I tried I used the genkernel method but it would always stop working at the same bit every time, so I decided to man up and configure the kernel myself, and I have yet another problem.
When I do:
as chroot, it gives a message saying:
Code: | bash: emerge: command not found |
even though I had used it a few steps back in the installation. When I type:
it just says
Does anyone know what the problem is, and if so how it can be fixed? Also, I don't know how to copy and paste from the livecd terminal onto the links thing so if anyone could help with that too I'd appreciate it. Thanks.
~PD |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Tue Aug 04, 2009 12:59 pm Post subject: |
|
|
silly question, did you env-update && source /etc/profile after you chrooted? |
|
Back to top |
|
|
Police Dog n00b
Joined: 04 Aug 2009 Posts: 49 Location: UK
|
Posted: Tue Aug 04, 2009 1:52 pm Post subject: |
|
|
Yeah I did all of that, and I've re-tried both of them several times but no luck still
Edit: Also env-update gives the same error message. If I have to do a fresh install once again I will be most displeased as this is at least my 5th or 6th attempt. |
|
Back to top |
|
|
cach0rr0 Bodhisattva
Joined: 13 Nov 2008 Posts: 4123 Location: Houston, Republic of Texas
|
Posted: Tue Aug 04, 2009 2:47 pm Post subject: |
|
|
emerge and env-update should be included as part of the stage3 tarball you downloaded from the web, so I'm not entirely sure what's missing here
maybe before chrooting do a
Code: |
find / -name 'emerge'
|
thatll tell us if the stage3 tarball was extracted into the correct place. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Aug 04, 2009 2:55 pm Post subject: |
|
|
Hi Police Dog,
It is hard at first, but don't give up because it is worth it! If I can make it work so can you.
|
|
Back to top |
|
|
Police Dog n00b
Joined: 04 Aug 2009 Posts: 49 Location: UK
|
Posted: Tue Aug 04, 2009 3:04 pm Post subject: |
|
|
I did "find / -name 'emerge'" and it listed three or four paths so it seems like it's there, which just adds to my confusion even more, but I can't copy and paste as far as I know as I'm using "links" from the terminal to post this. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Aug 04, 2009 3:21 pm Post subject: |
|
|
That's a weird one, especially because it worked and now doesn't.
On my box I get this Code: | # which emerge
/usr/bin/emerge |
Do you have that also? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Aug 04, 2009 3:35 pm Post subject: |
|
|
Police Dog wrote: | I did "find / -name 'emerge'" and it listed three or four paths so it seems like it's there, which just adds to my confusion even more, but I can't copy and paste as far as I know as I'm using "links" from the terminal to post this. | Go get the System Rescue CD, which is Gentoo-based and will give you a graphical user interface and a console window from which you can cut from and paste into a web browser. After booting that disk, you can restart the Gentoo install from the Chrooting section.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters.
Last edited by John R. Graham on Tue Aug 04, 2009 3:36 pm; edited 2 times in total |
|
Back to top |
|
|
Police Dog n00b
Joined: 04 Aug 2009 Posts: 49 Location: UK
|
Posted: Tue Aug 04, 2009 3:35 pm Post subject: |
|
|
Negative, I get:
"which: no emerge in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.1.2)" |
|
Back to top |
|
|
vincent- Retired Dev
Joined: 13 Jan 2007 Posts: 415 Location: Valencia (Spain)
|
Posted: Tue Aug 04, 2009 4:02 pm Post subject: |
|
|
Did you forget
Code: | cd /mnt/gentoo/
<download the stage>
tar xvjpf <stage3 tarball> |
? |
|
Back to top |
|
|
Police Dog n00b
Joined: 04 Aug 2009 Posts: 49 Location: UK
|
Posted: Tue Aug 04, 2009 4:11 pm Post subject: |
|
|
No I did all of that, I printed off the Gentoo Handbook and followed every word, which is why I'm totally lost... Would a(nother) fresh install help? |
|
Back to top |
|
|
vincent- Retired Dev
Joined: 13 Jan 2007 Posts: 415 Location: Valencia (Spain)
|
Posted: Tue Aug 04, 2009 4:14 pm Post subject: |
|
|
Try
Code: | ls -l /mnt/gentoo/usr/bin/emerge |
|
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Aug 04, 2009 4:14 pm Post subject: |
|
|
Police Dog wrote: | No I did all of that, I printed off the Gentoo Handbook and followed every word, which is why I'm totally lost... Would a(nother) fresh install help? |
Well, could be. I remember that it took me a few tries at first too. |
|
Back to top |
|
|
Police Dog n00b
Joined: 04 Aug 2009 Posts: 49 Location: UK
|
Posted: Tue Aug 04, 2009 5:40 pm Post subject: |
|
|
Right, so I decided to re-install once again, and I did "emerge pciutils" to begin configuring the kernel, which worked fine.
Next I cd into /mnt/gentoo/usr/src/linux (which I can't do as chroot btw...) and do "make menuconfig" and get the error message "bash: make: command not found" and then after this, emerge stops working too.
I did this before with a previous installation that worked fine (up until a boot issue stopped me in my tracks and forced me to start again) so why doesn't it work now? This is starting to annoy me now as I can't use this PC at all except for the installation, and it's been going on for pretty much a week now. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Aug 04, 2009 5:53 pm Post subject: |
|
|
Maybe you've got the wrong manual. In the Gentoo Handbook it says this Code: | # chroot /mnt/gentoo /bin/bash
# env-update
>> Regenerating /etc/ld.so.cache...
# source /etc/profile
# export PS1="(chroot) $PS1"
|
...
next chapter
...
Code: | # cd /usr/src/linux
# make menuconfig
|
|
|
Back to top |
|
|
Police Dog n00b
Joined: 04 Aug 2009 Posts: 49 Location: UK
|
Posted: Tue Aug 04, 2009 8:21 pm Post subject: |
|
|
I did it that way just now, and I still got the error message about the 'make' command not being found when I do 'make menuconfig' in /mnt/gentoo/usr/src/linux. This is driving me insane, I've tried installing at least 5 times today with the same error messages every time. Argh. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Aug 04, 2009 9:01 pm Post subject: |
|
|
I can't find anywhere in the Documentation where it says to run make menuconfig in /mnt/gentoo/usr/src/linux.
Normally make menuconfig is done in /usr/src/linux after chrooting. |
|
Back to top |
|
|
Police Dog n00b
Joined: 04 Aug 2009 Posts: 49 Location: UK
|
Posted: Tue Aug 04, 2009 9:09 pm Post subject: |
|
|
I tried that too, but the directory doesn't even exist. |
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Aug 04, 2009 9:21 pm Post subject: |
|
|
That may be so if you don't have the symlink.
What is the output of
Last edited by Mike Hunt on Tue Aug 04, 2009 9:22 pm; edited 1 time in total |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Aug 04, 2009 9:22 pm Post subject: |
|
|
Well, I would ask you to post the output ofbut you don't have a GUI working. I'll point you to my previous advice, though: john_r_graham wrote: | Go get the System Rescue CD, which is Gentoo-based and will give you a graphical user interface and a console window from which you can cut from and paste into a web browser. After booting that disk, you can restart the Gentoo install from the Chrooting section. | Still not a bad way to go.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
oscurochu Tux's lil' helper
Joined: 02 Aug 2009 Posts: 89
|
Posted: Tue Aug 04, 2009 10:08 pm Post subject: |
|
|
You say you've installed the stage3 tarball. My questions: did you cd into /mnt/gentoo BEFORE doing ANYTHING? That's what I did.
Then when you installed the tarball, did you install it to /mnt/gentoo? I remember having similar problems, not specifically with Gentoo, but it has always been from a misunderstanding of instructions, not doing the basics before trying to do the rest. |
|
Back to top |
|
|
Police Dog n00b
Joined: 04 Aug 2009 Posts: 49 Location: UK
|
Posted: Tue Aug 04, 2009 10:40 pm Post subject: |
|
|
oscurochu wrote: | You say you've installed the stage3 tarball. My questions: did you cd into /mnt/gentoo BEFORE doing ANYTHING? That's what I did.
Then when you installed the tarball, did you install it to /mnt/gentoo? I remember having similar problems, not specifically with Gentoo, but it has always been from a misunderstanding of instructions, not doing the basics before trying to do the rest. |
I did, otherwise I wouldn't have had enough disk space, an error I made the first time around.
John, I wrote down the output of "cat /proc/mounts" (ugh) so here goes:
Code: | rootfs / rootfs rw 0 0
tmpfs / tmpfs rw 0 0
dev/hdc /mnt/cdrom ido 9660 ro 0 0
dev/loop0 /mnt/livecd squashfs ro 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw,nosuid 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
tmpfs /mnt/livecd/usr/firmware tmpfs rw 0 0
tmpfs /mnt/livecd/usr/portage tmpfs rw 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,noexec 0 0
/dev/hda3 /mnt/gentoo ext3 rw,data-ordered 0 0
/dev/hda1 /mnt/gentoo/boot ext3 rw,data-ordered 00
none /mnt/gentoo/proc proc rw 0 0
udev /mnt/gentoo/dev tmpfs rw,nosuid 0 0 | Whew.
Also, I got a little further this time and managed to configure and compile the kernel, but when I try "emerge syslog-ng" it doesn't let me again.
The output of "ls -l /usr/src/linux" is
Code: | lrwxrwxrwx 1 root root 22 Aug 4 21:47 linux -> linux-2.6.30-gentoo-r4
drwxr-xr-x 23 root root 4096 Aug 4 22:08 linux-2.6.30-gentoo-r4 |
Cheers. ~PD |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Aug 04, 2009 10:48 pm Post subject: |
|
|
Thanks for doing that.
Huh. Looks different (more correct) than I suspected. Symlink looks good, too. Two more questions:- Did you get through an "emerge --sync" without errors?
- What are the errors that you get when you can't emerge syslog-ng?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
Police Dog n00b
Joined: 04 Aug 2009 Posts: 49 Location: UK
|
Posted: Tue Aug 04, 2009 10:54 pm Post subject: |
|
|
This is why I'm so confused, I've followed the Handbook to the dot but something just doesn't want to work.
There were one or two errors coming up, but I can't remember what they said as it all flashed by pretty quickly. Is there a log file or anything?
When I try and use emerge, it just says
Code: | bash: emerge: command not found |
|
|
Back to top |
|
|
Mike Hunt Watchman
Joined: 19 Jul 2009 Posts: 5287
|
Posted: Tue Aug 04, 2009 11:11 pm Post subject: |
|
|
Take a look at the output of this
Does it look something like this? Code: | /sbin:/bin:/usr/sbin:/usr/bin |
|
|
Back to top |
|
|
|