Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/usr/src/linux: no such file or directory
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
Rainbow Dash
n00b
n00b


Joined: 10 Aug 2012
Posts: 5

PostPosted: Fri Aug 10, 2012 4:19 am    Post subject: /usr/src/linux: no such file or directory Reply with quote

I'm trying to install gentoo and I've been relatively successful until now. I'm following the handbook but I am stuck at chapter 7. b. unit 2.2

After using # emerge gentoo-sources, the handbook tells me to view the kernel source symlink with the command "# ls -l /usr/src/linux"

When I use this command the console tells me "ls:cannot access /usr/src/linux: No such file or directory"

What is going on here? Did I do something wrong on my installation? Where can I find this file?


I hope I'm not too vague. I don't have any idea what I'm supposed to do.

Thanks.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Aug 10, 2012 4:28 am    Post subject: Reply with quote

Rainbow Dash,

Welcome to gentoo :D

What does ls -l /usr/src/ return :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Rainbow Dash
n00b
n00b


Joined: 10 Aug 2012
Posts: 5

PostPosted: Fri Aug 10, 2012 4:30 am    Post subject: Reply with quote

BillWho wrote:
Rainbow Dash,

Welcome to gentoo :D

What does ls -l /usr/src/ return :?:


total 0

Thanks.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2576

PostPosted: Fri Aug 10, 2012 4:32 am    Post subject: Reply with quote

emerge gentoo-sources or your preferred kernel. You can't compile what you don't have.
_________________
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
Rainbow Dash
n00b
n00b


Joined: 10 Aug 2012
Posts: 5

PostPosted: Fri Aug 10, 2012 4:35 am    Post subject: Reply with quote

penguin swordmaster wrote:
emerge gentoo-sources or your preferred kernel. You can't compile what you don't have.


After using emerge gentoo-sources I receive an "ERROR: dev-lang/perl-5.12.4-r1 failed (compile phase):
emake failed"

I get the same problem with emerge linux-sources.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Aug 10, 2012 4:37 am    Post subject: Reply with quote

Rainbow Dash,

OK , are you sure you're chrooted to the gentoo environment and, if so, did you emerge gentoo-sources :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Rainbow Dash
n00b
n00b


Joined: 10 Aug 2012
Posts: 5

PostPosted: Fri Aug 10, 2012 4:38 am    Post subject: Reply with quote

BillWho wrote:
Rainbow Dash,

OK , are you sure you're chrooted to the gentoo environment and, if so, did you emerge gentoo-sources :?:


Yes.

my prompt looks like this:

(chroot) livecd /#
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Aug 10, 2012 4:44 am    Post subject: Reply with quote

Quote:
After using emerge gentoo-sources I receive an "ERROR: dev-lang/perl-5.12.4-r1 failed (compile phase):
emake failed"


You shouldn't have any trouble with perl, but try emerge dev-lang/perl or perl-cleaner

Quote:
my prompt looks like this:


You can't just go by the prompt alone, I can make it say anything, as an example export PS1="\[\033[1;33m\]chroot to ->\[\033[1;31m\](nowhere) #\[\e[0m\] "
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Rainbow Dash
n00b
n00b


Joined: 10 Aug 2012
Posts: 5

PostPosted: Fri Aug 10, 2012 4:51 am    Post subject: Reply with quote

BillWho wrote:
Quote:
After using emerge gentoo-sources I receive an "ERROR: dev-lang/perl-5.12.4-r1 failed (compile phase):
emake failed"


You shouldn't have any trouble with perl, but try emerge dev-lang/perl or perl-cleaner

Quote:
my prompt looks like this:


You can't just go by the prompt alone, I can make it say anything, as an example export PS1="\[\033[1;33m\]chroot to ->\[\033[1;31m\](nowhere) #\[\e[0m\] "


Thanks, but after I use emerge dev-lang/perl I receive a failure message that reads: >>> Failed to emerge dev-lang/perl-5.12.4-r1
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Aug 10, 2012 4:57 am    Post subject: Reply with quote

Rainbow Dash,

It sounds like you might not have an internet connection. Is there anything in /etc/resolv.conf :?:

Does /etc/make.conf contain mirrors and the line SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"

_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13865

PostPosted: Fri Aug 10, 2012 10:26 pm    Post subject: Reply with quote

BillWho wrote:
It sounds like you might not have an internet connection. Is there anything in /etc/resolv.conf :?:
[/b]
If he had no Internet connection, it is likely that he would not have gotten Perl to begin compilation. According to the error text he has provided so far, the call to emake failed.

OP: please post the actual error text. We cannot tell you what is wrong from the very minimal amount of information that you have provided.
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Fri Aug 10, 2012 10:42 pm    Post subject: Reply with quote

Hu,

I based my assumption on:
Rainbow Dash wrote:
Thanks, but after I use emerge dev-lang/perl I receive a failure message that reads: >>> Failed to emerge dev-lang/perl-5.12.4-r1

And the fact that ls -l /usr/src/ returned nothing albeit Rainbow Dash said gentoo-sources was emerged :?
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7094
Location: Saint Amant, Acadiana

PostPosted: Fri Aug 10, 2012 10:43 pm    Post subject: Reply with quote

Too little info, but one does not need Perl to install kernel sources. If the installation is in chroot then the kernel sources can be fetched, kernel can be built and the system can be booted in its own.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13865

PostPosted: Sat Aug 11, 2012 3:21 am    Post subject: Reply with quote

BillWho wrote:
And the fact that ls -l /usr/src/ returned nothing albeit Rainbow Dash said gentoo-sources was emerged :?
He said he tried to emerge sys-kernel/gentoo-sources, but that it resulted in perl failing to build. I believe he has not successfully installed kernel sources.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat Aug 11, 2012 8:56 am    Post subject: Reply with quote

Hu wrote:
BillWho wrote:
And the fact that ls -l /usr/src/ returned nothing albeit Rainbow Dash said gentoo-sources was emerged :?
He said he tried to emerge sys-kernel/gentoo-sources, but that it resulted in perl failing to build. I believe he has not successfully installed kernel sources.


++ bingo
https://forums.gentoo.org/viewtopic-t-928488-highlight-.html

OP - we need to figure out why perl is failing to build for you. when perl builds, your kernel sources will install
so we would need to see logs from the failed perl ebuild, figure out what's breaking there, fix, and once that's fixed your emerge of gentoo-sources should be just dandy.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Tue Aug 14, 2012 10:14 am    Post subject: Reply with quote

I'm not sure what the original poster has done, but I've never had to emerge
perl to build gentoo-sources - perl binaries are part of the stage 3. It might
be worth checking the commands he's used to unpack the stage 3 and the
portage snapshot. Then check his internet connection.

Will
Back to top
View user's profile Send private message
iamben
Apprentice
Apprentice


Joined: 10 May 2004
Posts: 275

PostPosted: Tue Aug 14, 2012 3:10 pm    Post subject: Reply with quote

Current stage3's do not ship with perl installed. It will be installed as a dep when you first emerge gentoo-sources.

OP: If you still need help, please paste the full error output of "emerge -1 perl" here so we can figure out why it won't install.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Fri Aug 17, 2012 9:13 am    Post subject: Reply with quote

That doesn't seem a very good idea - perl is a quite widely used utility.
However, what's done is done. Thanks for the update.

Will
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Fri Aug 17, 2012 2:27 pm    Post subject: Reply with quote

cwr wrote:
That doesn't seem a very good idea - perl is a quite widely used utility.

will ... true, but I think the change makes some sense, while its widely used its not required for installation. An installation target could be an embeded system with no need of perl, so it make some sense not to have it in @system, but as a dependency of something in @world. The change simply makes portage more flexable in that regard, and most installs will still end up with perl installed.

best ... khay
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