Abiel
Posts: 6
Joined: Mon Sep 12, 2016 12:22 am

'make' command error

Mon Sep 19, 2016 2:12 pm

Hi everyone!

I installed some things i found on other sites to be able to use 'make' command. I want to install WiFi driver that i found working best on other linux OSes but i can't make coz of this error:
~/rtlwifi_new $ make
make -C /lib/modules/4.7.2/build M=/home/abiel/rtlwifi_new modules
make[1]: *** /lib/modules/4.7.2/build: No such file or directory. Stop.
Makefile:57: recipe for target 'all' failed
make: *** [all] Error 2
I'm not sure if this is in right category so i apologize for that... Thank You! :)

User avatar
ikey
Project Founder
Posts: 1581
Joined: Sun Jul 27, 2014 10:42 pm
Location: Ireland
Contact: Website

Re: 'make' command error

Mon Sep 19, 2016 2:41 pm

Code: Select all

sudo eopkg it -c system.devel
sudo eopkg it kernel-headers
Image

User avatar
ikey
Project Founder
Posts: 1581
Joined: Sun Jul 27, 2014 10:42 pm
Location: Ireland
Contact: Website

Re: 'make' command error

Mon Sep 19, 2016 2:42 pm

Sidenote: You should be on the 4.7.4 kernel. Please run all updates and reboot before trying to compile the module.
Image

Abiel
Posts: 6
Joined: Mon Sep 12, 2016 12:22 am

Re: 'make' command error

Mon Sep 19, 2016 3:07 pm

I used commands You posted and after that i used:
sudo pisi up
Rebooted and worked like Heaven!
Solus is the best linux OS i ever tried. Don't know what makes it fast and very stable.. Only thing is support for every day programs and update for them. When that arrived i think i'm gonna leave Windows for good.. Thank You and keep up good work! :)

User avatar
ikey
Project Founder
Posts: 1581
Joined: Sun Jul 27, 2014 10:42 pm
Location: Ireland
Contact: Website

Re: 'make' command error

Mon Sep 19, 2016 3:20 pm

Please make sure to use 'eopkg' - 'pisi' is legacy and will disappear in future updates :)

Glad things are working out ok, and looking forward to stealing you full-time :D
Image

ace111
Posts: 6
Joined: Fri Jun 16, 2017 5:46 pm

Re: 'make' command error

Sat Jun 24, 2017 9:31 am

I' getting the same error now.

akash@skyhigh ~ $ cd rtlwifi_new-rock.new_btcoex/
akash@skyhigh ~/rtlwifi_new-rock.new_btcoex $ sudo make
make -C /lib/modules/4.9.32-31.lts/build M=/home/akash/rtlwifi_new-rock.new_btcoex modules
make[1]: *** /lib/modules/4.9.32-31.lts/build: No such file or directory. Stop.
make: *** [Makefile:57: all] Error 2


I've already installed developer tools, updated kernel. But still got this error.
Newbie here. All help appreciated.

User avatar
kyrios
Posts: 2290
Joined: Thu Sep 22, 2016 4:20 pm

Re: 'make' command error

Sat Jun 24, 2017 12:36 pm

ace111 wrote:
Sat Jun 24, 2017 9:31 am
I' getting the same error now.

akash@skyhigh ~ $ cd rtlwifi_new-rock.new_btcoex/
akash@skyhigh ~/rtlwifi_new-rock.new_btcoex $ sudo make
make -C /lib/modules/4.9.32-31.lts/build M=/home/akash/rtlwifi_new-rock.new_btcoex modules
make[1]: *** /lib/modules/4.9.32-31.lts/build: No such file or directory. Stop.
make: *** [Makefile:57: all] Error 2


I've already installed developer tools, updated kernel. But still got this error.
Newbie here. All help appreciated.

Code: Select all

sudo eopkg it linux-lts-headers

ace111
Posts: 6
Joined: Fri Jun 16, 2017 5:46 pm

Re: 'make' command error

Sun Jun 25, 2017 7:26 am

Thanks a lot !!! IT works now.

kote
Posts: 1
Joined: Mon Jan 29, 2018 7:33 pm

Re: 'make' command error

Sat Feb 03, 2018 1:53 pm

Hi, I have a similar error

Code: Select all

admin@solus ~/rtlwifi_new-master $ sudo make
Пароль: 
make -C /lib/modules/4.14.15-48.current/build M=/home/admin/rtlwifi_new-master modules
make[1]: *** /lib/modules/4.14.15-48.current/build: Нет такого файла или каталога.  Останов.
make: *** [Makefile:58: all] Ошибка 2
I tried
sudo eopkg it -c system.devel
sudo eopkg it kernel-headers
and

Code: Select all

sudo eopkg it linux-lts-headers

User avatar
kyrios
Posts: 2290
Joined: Thu Sep 22, 2016 4:20 pm

Re: 'make' command error

Sat Feb 03, 2018 6:53 pm

kote wrote:
Sat Feb 03, 2018 1:53 pm
Hi, I have a similar error

Code: Select all

admin@solus ~/rtlwifi_new-master $ sudo make
Пароль: 
make -C /lib/modules/4.14.15-48.current/build M=/home/admin/rtlwifi_new-master modules
make[1]: *** /lib/modules/4.14.15-48.current/build: Нет такого файла или каталога.  Останов.
make: *** [Makefile:58: all] Ошибка 2
I tried
sudo eopkg it -c system.devel
sudo eopkg it kernel-headers
and

Code: Select all

sudo eopkg it linux-lts-headers
You have the "current" kernel (4.14.15-48.current/), so you have to install the "current" headers, not the "lts" ones.

Code: Select all

sudo eopkg it linux-current-headers

Return to “Tutorials”