LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-03-2010, 04:43 PM   #1
StefanB46
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Rep: Reputation: 0
OpenSuse: build is installed but not recognized by make.


I was trying to follow instructions in http://acx100.sourceforge.net/wiki/ACX

There is a reference to build in my kernel (with red background), se below:

linux-om4s:/lib/modules/2.6.31.5-0.1-default # ls
build modules.alias modules.alias.temp modules.builtin.bin modules.dep.bin modules.symbols source updates
kernel modules.alias.bin modules.builtin modules.dep modules.order modules.symbols.bin systemtap vdso

However,when trying make from my dictionary :

linux-om4s:/usr/src/dlink1/acx-20080210 # make -C /lib/modules/`uname -r`/build M=`pwd`

build is not recognized, i.e.the following occurs:

make: *** /lib/modules/2.6.31.5-0.1-default/build: No such file or directory. Stop.

Both make and build have been properly installed in Software Manager.

Whatś wrong?
 
Old 07-03-2010, 05:03 PM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
What is the output of:
Code:
ls -l /lib/modules/`uname -r`/build
Most likely you miss the kernel-source, kernel-default packages

Regards

Last edited by bathory; 07-03-2010 at 05:06 PM.
 
0 members found this post helpful.
Old 07-04-2010, 05:21 PM   #3
StefanB46
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for your orinot answer,

stefan@StaryLaptop:~> ls -l /lib/modules/`uname -r`/build results in:

lrwxrwxrwx 1 root root 44 2010-07-01 08:34 /lib/modules/2.6.31.5-0.1-default/build -> /usr/src/linux-2.6.31.5-0.1-obj/i386/default

and the background from /lib on is red

What an I supposed to do in order to take care of /include kernel-source and kernel-default?

Sorry for my stupid questions, but I am really a newbie to Linux. .
 
Old 07-04-2010, 05:50 PM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,508

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Quote:
Originally Posted by StefanB46 View Post
What an I supposed to do in order to take care of /include kernel-source and kernel-default?
Well.. kernel-default is the name of your kernel. Kernel sources are the development files (headers and libraries) that are mandatory to build kernel modules. OpenSuSE used to call kernel-source the package containing these headers and libraries, but since release 11.2 the package has been renamed kernel-name-devel.

You have to check the exact kernel you have installed on your system and (if missing) install the matching kernel-default-devel package. Example: in Yast Software Management or from the command line using rpm or zypper, you can easily verify if you have:
Code:
kernel-default-2.6.31.5-0.1.1
kernel-default-base-2.6.31.5-0.1.1
and install the following accordingly:
Code:
kernel-default-devel-2.6.31.5-0.1.1
Just be sure the kernel name (default) and the version numbers (kernel: 2.6.31.5, package: 0.1.1 in the example above) are exactly the same.
 
0 members found this post helpful.
Old 07-05-2010, 09:58 PM   #5
StefanB46
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Sorry gentlemen, but I am a complete newbie, which means that "What" to do is still too complicated.
What I need is "How" to do it.

Anyway, after having looked around a lot, I finally inquired the system with rpm and found that I have only
the "kernel-default" package. I found also the other packages, i.e. "kernel-default-base" and "kenel-defaoult-devel" on Internet
and downloaded them. However, when trying to install them (via Gnome), I received the following:

"The request failed. .... failed to get supported types for the backend. Launch helper exited with unknown return code 1"

Best regards,
Stefan
 
Old 07-06-2010, 03:10 AM   #6
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,508

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Ok, sorry. The error message reveals a problem with the graphical front-end for the GNOME package installer, so let's try from a terminal by now. Be sure the system is connected to internet, open a terminal and login as root using:
Code:
# su -
Please note the # sign is only the command prompt (you don't have to type it). After that you will use zypper to download and manage the required packages. First check the installed kernel packages and the available ones:
Code:
# zypper search -s --match-exact 'kernel-default*'
this will give you a list of all the kernel-default packages (most likely you will see multiple versions, but only one kernel-default package is installed - check the i in the first column). If it correctly lists also kernel-default-base and kernel-default-devel matching exactly the version of the installed kernel, you can proceed to installation:
Code:
# zypper install kernel-default-base kernel-default-devel
zypper will automatically select the correct version, matching the running kernel. If in doubt answer "no" when prompted for confirmation and post the output of both commands here (please use CODE tags for doing so - in advanced mode you have to select the text and click the # button - you will see the text embedded in [CODE]some text[/CODE]).
Hope this helps.
 
Old 07-06-2010, 04:12 AM   #7
StefanB46
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks a lot. And sorry for posting my previous message twice: things happen when you try to hack in the middle of the night.

The kernel files are already installed, and the make -command with nuild (which initited the tree) have been properly executed, albeit with some errors. But it may be the beginning of another tree.
 
  


Reply

Tags
build, make, opensuse


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB devices not recognized with OpenSuse 11.0 moegreen Linux - Newbie 1 11-19-2009 03:55 PM
Gentoo Fresh Build - 3COM 3c905C not being recognized. Wheat_Thins Linux - Hardware 10 03-28-2009 10:51 AM
remove the gcc-build, binutils-build, etc after make @d4M Linux From Scratch 6 01-26-2009 04:29 AM
Discs not recognized in openSUSE alpha 5 pilotgi Suse/Novell 2 06-17-2007 07:33 PM
Camera built into screen, not recognized by OpenSuse dvergos Linux - Laptop and Netbook 3 08-08-2006 12:05 AM


All times are GMT -5. The time now is 04:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration