LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-20-2006, 01:32 AM   #1
Aenima427
LQ Newbie
 
Registered: Mar 2006
Distribution: Gentoo
Posts: 16

Rep: Reputation: 0
Problem with "make" command in Gentoo [SOLVED]


Hello everyone, this is my first post. I am a Linux newbie and I successfully installed Gentoo from the universal install CD. I am trying to setup my Netgear WPN111 USB wireless connection. I'm trying to install ndiswrapper-1.10.tar I used the tar command to unzip, that worked no problem, but when I type make, all I get are error messages. Here they are:
Code:
 #make make[1]: Entering directory '/home/Downloads/ndiswrapper-1.10/driver' can't find kernel sources in /lib/modules/2.6.15-gentoo-r5/build; give path to kernel sources with KSRC=<path> argument to make make[1]: *** [prereq_check] Error 1 make[1]: Leaving directory make:***[install] Error 2
If anyone has any tips...or can translate that KSRC part into English for me, I'd appreciate it. Thanks

Last edited by Aenima427; 04-02-2006 at 12:38 AM.
 
Old 03-20-2006, 02:38 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
when you are making a particular module for your kernel, kernel sources are required ,-
download kernel sources from the gentoo site (matching your kernel version)
(usually found out through the command
uname -r
)
 
Old 03-20-2006, 03:19 AM   #3
Aenima427
LQ Newbie
 
Registered: Mar 2006
Distribution: Gentoo
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks, now for a question that I am embarassed to ask. What file (or at least the file extension) should I download? I am running 2.6.15-gentoo-r5, and I can't find anything close to that on any of the North American mirrors. kernel.org has the 2.6.16 kernal, should I download that? I have a feeling that would screw things up.
 
Old 03-20-2006, 03:49 AM   #4
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
well since you are new to linux it is natural to assume that you don't know a lot about linux, but unlike windows which embraces stupidity(example:you don't have to have particular knowledge about windows kernel or about device drivers to install new device drivers) you might have to learn what to do in linux.
First of all you should know the google which is linux specific
http://google.com/linux
(search for your problem in the search engine, I am sure somebody else has faced it before)
Now about the kernel-
if you have a program called apt-shell
run it(from the terminal)
$apt-shell
then on the shell
apt>search kernel source
apt>install (the package that you want to)
apt>commit
Now if you can't find kernel source for your particular kernel what you can do is download the whole kernel source from
http://kernel.org
extract it
tar -xvjf <file>.bz2
or
tar -xvzf <file>.gz
(read the readme file first)
now from the extracted directory
try make xconfig
and after saving
try

make && make modules && make modules_install && make install
if you think that it is complicated just tell your problem and I will try to make it a bit easier.
Robin
 
Old 03-20-2006, 04:04 AM   #5
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
?
pick another mirror?

If you are running this kernel in Gentoo, that means you built it yourself - which in turn means you have it installed - or can reinstall it if you should have decided to give a command like:
Code:
emerge -aC sys-kernel/gentoo-sources-2.6.15-r5
which would have removed it - after asking you for confirmation.

In case you dont have it around anymore:
Code:
echo "sys-kernel/gentoo-sources" >> /etc/portage/package.keywords
emerge -aC =sys-kernel/gentoo-sources-2.6.15-r5
will install it again

2.6.16 is not out yet...
 
Old 03-20-2006, 05:22 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Why did you not just emerge ndiswrapper ???.
 
Old 03-20-2006, 05:22 AM   #7
Ha1f
Member
 
Registered: Jun 2005
Location: University of Maryland
Distribution: FreeBSD
Posts: 268

Rep: Reputation: 30
maybe i missed something, but why dont you emerge ndiswrapper?
 
Old 03-20-2006, 05:50 AM   #8
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Oh yes - that is true - there is a ebuild for that...
The error looked like the kernel-source was not found - but I might have drawn conclusions too fast...- if installing from source like that, one might need to give that location during the ./configure step if it is not autodetected
 
Old 03-20-2006, 01:55 PM   #9
Aenima427
LQ Newbie
 
Registered: Mar 2006
Distribution: Gentoo
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for everyone's help. I am emerging ndiswrapper, and downloading all the bz2 files as emerge lists them. It's taking a while since I have to reboot into windows every time I need a file, but I think I'm getting there.
 
Old 03-21-2006, 02:27 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Ahhhh - that's a different can of worms. Never tried a networkless install.
Yuck !!!.
You should have installed a sources package (gentoo-sources ???) as part of the install. Gentoo puts it under /usr/src/linux (symlink).
You could make it work with the makefile from your initial post, but that looks a bit odd.
If you have a mate with Gentoo, s/he can download the whole package for you.
Good luck ...
 
Old 03-21-2006, 02:28 AM   #11
mbreith
Member
 
Registered: Feb 2006
Location: oregon
Distribution: PIII fedora2 | P4 fedora2 | Thinkpad fedora2
Posts: 54

Rep: Reputation: 15
Quote:
I have to reboot into windows every time I need a file
Why . If your Windows half of your computer can connect to the internet, why can't your Linux half? I use Gentoo myself and the documentation to get the internet working is great. What are you using to get Windows connecting?
 
Old 03-21-2006, 04:09 AM   #12
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
There is also a way that I used a few months ago, to have emerge (or portage, for that matter...) write the files (the exact filenames including the location on the net - the whole adress..) it wants to download to a file instead of downloading them.
Then you can take this file - go to windows or somewhere else with a good internet connection and use wget to download all the files at once.
Take them and copy them to /usr/portage/distfiles and you are good to go.
You will need to search for the instructions for yourself - somewhere on or via the Gentoo website you will get this info
 
Old 03-21-2006, 04:48 AM   #13
Aenima427
LQ Newbie
 
Registered: Mar 2006
Distribution: Gentoo
Posts: 16

Original Poster
Rep: Reputation: 0
Jomen, that sounds about like what I'm doing, but I just write down the file name that emerge tries to get, then go to distfiles.gentoo.org and download them. The problem is that emerge only lists the one file that it needs, then once I have it copied into /usr/portage/distfiles, emerge tells me what it needs next. So, it's time consuming but it works. The problem now is that I don't have a usr/src/linux/.config file, so I need to make one to create the variables. I definately need to RTFM before I do that though.

mbrieth, I am using a NetGear WPN111 to connect windows. The problem is that linux doesn't support the USB wireless adapter directly, so I'm trying to get all the files and programs I need to make it work.

Last edited by Aenima427; 03-21-2006 at 04:50 AM.
 
Old 03-21-2006, 05:44 AM   #14
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Yes - it works - but as you noticed - it is very time consuming - you would be using your time better to find the script I was talking about and do it all in one step.

Kernel configuration is another task...
the command:
lspci -v
gives you the info on your hardware you will need to choose the right options when you configure your kernel-source before you build it.
make menuconfig or make xconfig will provide an easy to use interface to do the configuration.
 
Old 03-21-2006, 05:49 AM   #15
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
OK - here it is - wasn't hard to find
There is a wget version for windows - equally easy to find on the net.
6-th hit in Google - search terms: gentoo emerge without connection

Last edited by jomen; 03-21-2006 at 05:50 AM.
 
  


Reply



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
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
window maker "make" / "make install" problem xiekke Fedora 2 08-08-2007 10:55 AM
in linux fortran: problem with the command "make" terrence Programming 2 08-27-2005 04:02 AM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
Wvdial, error "make", gentoo SuSE 1983. Linux - Networking 3 06-26-2005 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:12 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration