Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Проблема kernel source directory was not found
View unanswered posts
View posts from last 24 hours

 
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Russian
View previous topic :: View next topic  
Author Message
Lawyer_Roger
n00b
n00b


Joined: 14 Jul 2021
Posts: 12
Location: Russia

PostPosted: Sat Jul 17, 2021 12:41 pm    Post subject: Проблема kernel source directory was not found Reply with quote

Здравствуйте, решил я освоить линукс с нуля, решил начать с Генту (знал что будет сложно, но так закладывается понимание принципов работы в целом, плюс слышал что у Генту очень хорошая документация).
Есть старый ноутбук: emachines e732zg-p622g32mikk в котором установлены:

Intel Pentium P6200, 4Gb RAM

Выпущен компьютер в 2011г., мною давным давно не используется и на роль подопытного подходит лучше всего.

Делал установку Генту по Хэндбуку для AMD64 русская версия (в английском не силен):
1) настроил сеть
2) разбил диск с помощью parted (судя по всему сейчас Хэндбук с момента моей разметки диска поменялся, потому что конкретно в данный момент работа с parted не описана в хэндбуке)
3) получил stage3 архив
4) перешел в изолированную среду chroot
5) обновил @world
6) На этапе сборки ядра (решил действовать через genkernel- знаю что не в духе Генту, но вручную опасаюсь) возникла проблема:
когда набираю команду genkernel all компьютер выводит сообщение: ERROR: kernel source directory "/usr/src/linux" was not found.
Что можно делать в этой ситуации? все предыдущие шаги и команды по хэндбуку были выполнены.
Back to top
View user's profile Send private message
spica
Apprentice
Apprentice


Joined: 04 Jun 2021
Posts: 282

PostPosted: Sat Jul 17, 2021 8:35 pm    Post subject: Reply with quote

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel/ru
Code:
# emerge --ask sys-kernel/gentoo-sources
Back to top
View user's profile Send private message
Lawyer_Roger
n00b
n00b


Joined: 14 Jul 2021
Posts: 12
Location: Russia

PostPosted: Sat Jul 17, 2021 8:51 pm    Post subject: Reply with quote

spica wrote:
https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel/ru
Code:
# emerge --ask sys-kernel/gentoo-sources

Было выполнено перед genkernel all
Back to top
View user's profile Send private message
denis_k79
n00b
n00b


Joined: 18 Jul 2021
Posts: 1

PostPosted: Sun Jul 18, 2021 9:24 am    Post subject: Reply with quote

Такая же проблема - делаю по хэндбуку - сначала :

emerge --ask sys-kernel/gentoo-sources

Затем :

ls -l /usr/src/linux

Получаю сообщение - что директория не найдена.
Back to top
View user's profile Send private message
spica
Apprentice
Apprentice


Joined: 04 Jun 2021
Posts: 282

PostPosted: Thu Jul 22, 2021 3:34 pm    Post subject: Reply with quote

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel
Quote:
An easy way to create the symbolic link is to utilize eselect's kernel module.

First, list all installed kernels:
Code:
root #eselect kernel list

Available kernel symlink targets:
  [1]   linux-4.9.16-gentoo

In order to create the symbolic link called linux, use:
Code:
root # eselect kernel set 1
root #ls -l /usr/src/linux

lrwxrwxrwx    1 root   root    12 Oct 13 11:04 /usr/src/linux -> linux-4.9.16-gentoo

Back to top
View user's profile Send private message
Lawyer_Roger
n00b
n00b


Joined: 14 Jul 2021
Posts: 12
Location: Russia

PostPosted: Sun Jul 25, 2021 8:46 am    Post subject: Reply with quote

Не знаю каким образом, но проблема решилась после добавления в make.conf переменной:
Code:
ACCEPT_LICENSE="*"


И пересборки по хэндбуку
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Russian 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