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
MisterWayne
n00b
n00b


Joined: 01 Jun 2017
Posts: 5

PostPosted: Thu Jun 01, 2017 7:44 pm    Post subject: /usr/src/linux No such file or directory Reply with quote

I was just about to install Gentoo Linux on my new Notebook, but at the section where i should configure the linux kernel i executed "ls -l /usr/src/linux" but it said "ls: cannot access '/usr/src/linux': No such file or directory" and the command before that didn't output any errors.

Does anyone know what I may have done wrong?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10727
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Jun 01, 2017 7:48 pm    Post subject: Reply with quote

Hi MisterWayne,

Wlecome to Gentoo! :wink:

You missed installing the kernel source or else missed including the symlink USE flag when installing the kernel source. See what's in /usr/src:
Code:
ls /usr/src
Report results, please.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
MisterWayne
n00b
n00b


Joined: 01 Jun 2017
Posts: 5

PostPosted: Thu Jun 01, 2017 7:50 pm    Post subject: Reply with quote

John R. Graham wrote:
Hi MisterWayne,

Wlecome to Gentoo! :wink:

You missed installing the kernel source or else missed including the symlink USE flag when installing the kernel source. See what's in /usr/src:
Code:
ls /usr/src
Report results, please.

- John


There is nothing in there.
It doesen't output anything.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10727
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Jun 01, 2017 7:58 pm    Post subject: Reply with quote

"Missed a step," it is, then. :wink: See Installing the sources in the handbook. See the very first command you're supposed to issue, right before the "ls -l /usr/src/linux".

Edit: I'm not reading very well today it seems. You said, "The command before that didn't output any errors." It should output something, though. Can you report the last few lines of what it did output, please?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
MisterWayne
n00b
n00b


Joined: 01 Jun 2017
Posts: 5

PostPosted: Thu Jun 01, 2017 8:11 pm    Post subject: Reply with quote

John R. Graham wrote:
"Missed a step," it is, then. :wink: See Installing the sources in the handbook. See the very first command you're supposed to issue, right before the "ls -l /usr/src/linux".

Edit: I'm not reading very well today it seems. You said, "The command before that didn't output any errors." It should output something, though. Can you report the last few lines of what it did output, please?

- John


This is the full output.

Code:
(chroot) livecd / # emerge --ask sys-kernel/gentoo-sources

 * IMPORTANT: 5 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-devel/bc-1.06.95-r1  USE="readline -libedit -static"
[ebuild  N     ] sys-kernel/gentoo-sources-4.9.16  USE="-build -experimental -symlink"

The following license changes are necessary to proceed:
 (see "package.license" in the portage(5) man page for more details)
# required by sys-kernel/gentoo-sources (argument)
>=sys-kernel/gentoo-sources-4.9.16:4.9.16 freedist

Would you like to add these changes to your config files? [Yes/No] Yes

Autounmask changes successfully written.

 * IMPORTANT: 6 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10727
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Jun 01, 2017 8:22 pm    Post subject: Reply with quote

Those IMPORTANTs are important. Run
Code:
dispatch-conf
to view and approve the changes to the configuration files. Then re-run the emerge of gentoo-sources.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Thu Jun 01, 2017 8:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54809
Location: 56N 3W

PostPosted: Thu Jun 01, 2017 8:22 pm    Post subject: Reply with quote

MisterWayne,

That has prepared some configuration changes for you to review and possibly accept.

Code:
Would you like to add these changes to your config files? [Yes/No] Yes

Autounmask changes successfully written.

 * IMPORTANT: 6 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.


The
Code:
[ebuild  N     ]
N=New shows that these packages are not yet installed.

You need to review those 6 config files in '/etc/portage'
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
MisterWayne
n00b
n00b


Joined: 01 Jun 2017
Posts: 5

PostPosted: Thu Jun 01, 2017 8:32 pm    Post subject: Reply with quote

John R. Graham wrote:
Those IMPORTANTs are important. Run
Code:
dispatch-conf
to view and approve the changes to the configuration files. Then re-run the emerge of gentoo-sources.

- John


That helped!

Thanks!
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