LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-01-2004, 03:42 PM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Trouble compiling FreeS/WAN


I'm trying to compile FreeS/WAN, and I'm getting the following error while trying to compile

$ make oldmod
*** cannot find "/usr/src/linux-2.4/.config"!!
*** perhaps kernel has never been configured?
*** please do that first; the results are necessary.
make: *** [precheck] Error 1

Here are the contents of /usr/src/linux-2.4 ...

$ ls -a
. COPYING.modules fs lib README
.. CREDITS include MAINTAINERS REPORTING-BUGS
arch crypto init Makefile Rules.make
configs Documentation ipc mm scripts
COPYING drivers kernel net tmp_include_depends

I'm running RH9.0, and I can't really think of any other relevant info to give you guys. What do I do now?
 
Old 03-01-2004, 06:37 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
u need the file ".config"

if im right then its the file that is savedwhen u exit make menuconfig, it should have your kernel options and such so the program can configure itself to the kernel, so go configure the kernel like it says (note to distro makers: this is what not to do, include the linux source but forget to include the config files, every distro should have a properly configure kernel source treee for apps like these
 
Old 03-02-2004, 05:48 PM   #3
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
How do I "configure" the kernel?
 
Old 03-03-2004, 01:43 PM   #4
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
*bump*
 
Old 03-04-2004, 04:08 AM   #5
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
go to the kernel source tree and inssue the folwoing comands:
make {mrproper,menuconfig}
make {dep,bzImage,modules,modules_install}
cp {System.map,arch/i386/boot/bzImage} /boot
lilo
after the first part you can configure the kernel, when your done click on the exit option, and it will ask you if you want to save, say yes then issue the 2nd comand

if you dont have lilo then use the proper replace ment so teh boot laoder know of the kernel change
 
  


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
FreeS/WAN scripts jake_reginato Linux - Security 0 05-02-2005 01:03 PM
FreeS/Wan Vs. OpenS/Wan Vs. StrongS/Wan bkankur Linux - Security 1 03-01-2005 09:27 AM
FREES/Wan Configuration. maorh Linux - Security 4 12-16-2003 05:02 AM
FreeS/WAN problem kirk21 Linux - Networking 0 08-08-2003 07:26 PM
FreeS/WAN Installation Help Needed - Please VirtueTech Linux - Networking 2 07-16-2003 08:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:25 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