Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-02-2005, 12:12 AM
|
#1
|
Member
Registered: Nov 2004
Posts: 35
Rep:
|
Problems while making the module in Mandrake 10.1
Hi
I am trying to install a VPN client software on my home PC. After extracting the gz file, I do the following:-
[root@atul vpnclient]# ./vpn_install
Cisco Systems VPN Client Version 4.0.4 (A) Linux Installer
Copyright (C) 1998-2001 Cisco Systems, Inc. All Rights Reserved.
By installing this product you agree that you have read the
license.txt file (The VPN Client license) and will comply with
its terms.
Directory where binaries will be installed [/usr/local/bin]
Automatically start the VPN service at boot time [yes] no
In order to build the VPN kernel module, you must have the
kernel headers for the version of the kernel you are running.
For RedHat 6.x users these files are installed in /usr/src/linux by default
For RedHat 7.x users these files are installed in /usr/src/linux-2.4 by default
For Suse 7.3 users these files are installed in /usr/src/linux-2.4.10.SuSE by de
fault
Directory containing linux kernel source code [] /usr/src
* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.8.1-12mdk/CiscoVPN".
* The VPN service will *NOT* be started automatically at boot time.
* Kernel source from "/usr/src" will be used to build the module.
Is the above correct [y]
Making module
make -C /usr/src SUBDIRS=/home/atul/Desktop/VPN/vpnclient modules
make[1]: Entering directory `/usr/src'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/usr/src'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
After this I run the following command:-
******************************
[root@atul vpnclient]# cd /usr/src
[root@atul src]# ls
RPM/
**********************
Am I missing some setup or some files ? I am newbie to Linux and would appreciate if someone can help
|
|
|
03-02-2005, 01:29 AM
|
#2
|
Senior Member
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090
Rep:
|
Re: Problems while making the module in Mandrake 10.1
Quote:
Originally posted by atulhi
Directory containing linux kernel source code [] /usr/src
Am I missing some setup or some files ? I am newbie to Linux and would appreciate if someone can help
|
You need to place your Mandrake installation DVD/CD in the drive and type
urpmi kernel-source
This will create a /usr/src/linux symlink to the new directory containing the kernel source tree which you are missing.
Then when you answer the above question specify /usr/src/linux
|
|
|
03-03-2005, 04:45 PM
|
#3
|
Member
Registered: Nov 2004
Posts: 35
Original Poster
Rep:
|
hi oppose,
thanks for the reply and I tried your suggestions.
Acutally I had installed Mandrake10.1 by burning 3 CDs from a mirror site. I inserted the CDs (one by one and each time typed in the command), every time it says no kernel on the prompt
************************************
[root@atul root]# urpmi kernel -source
Unknown option: o
Unknown option: u
Unknown option: r
Unknown option: c
Unknown option: e
no package named kernel
************************************
|
|
|
03-03-2005, 06:54 PM
|
#4
|
Member
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702
|
the kernel-source is on the download
see http://www.mandrakelinux.com/en/10.1/features/14.php3
kernel-source-2.6 2.6.8.1-10mdk : The source code for the Linux kernel
type kernel-source
not kernel -source
|
|
|
03-03-2005, 10:04 PM
|
#5
|
Member
Registered: Nov 2004
Posts: 35
Original Poster
Rep:
|
hi
i tried urpmi kernel-source and it asked me to install a bunch of rpm files which i did and now my /usr/src/ directory has a link linux
*******************
[root@atul vpnclient]# cd /usr/src
[root@atul src]# ls
linux@ linux-2.4.27-0.pre2.1mdk/ RPM/
************************
But even now I am getting some kind of error. Following is what I am doing
*********************************************************************************************
[root@atul src]# cd /home/atul/Desktop/VPN/vpnclient
[root@atul vpnclient]# ./vpn_install
Cisco Systems VPN Client Version 4.0.4 (A) Linux Installer
Copyright (C) 1998-2001 Cisco Systems, Inc. All Rights Reserved.
By installing this product you agree that you have read the
license.txt file (The VPN Client license) and will comply with
its terms.
Directory where binaries will be installed [/usr/local/bin]
Automatically start the VPN service at boot time [yes] no
In order to build the VPN kernel module, you must have the
kernel headers for the version of the kernel you are running.
For RedHat 6.x users these files are installed in /usr/src/linux by default
For RedHat 7.x users these files are installed in /usr/src/linux-2.4 by default
For Suse 7.3 users these files are installed in /usr/src/linux-2.4.10.SuSE by default
Directory containing linux kernel source code [/usr/src/linux]
* Binaries will be installed in "/usr/local/bin".
* Modules will be installed in "/lib/modules/2.6.8.1-12mdk/CiscoVPN".
* The VPN service will *NOT* be started automatically at boot time.
* Kernel source from "/usr/src/linux" will be used to build the module.
Is the above correct [y]
Making module
make -C /usr/src/linux SUBDIRS=/home/atul/Desktop/VPN/vpnclient modules
make[1]: Entering directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make -C /home/atul/Desktop/VPN/vpnclient CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.27-0.pre2.1mdk/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.27-0.pre2.1mdk/include/linux/modversions.h" MAKING_MODULES=1 modules
make[2]: Entering directory `/home/atul/Desktop/VPN/vpnclient'
make[2]: *** No rule to make target `modules'. Stop.
make[2]: Leaving directory `/home/atul/Desktop/VPN/vpnclient'
make[1]: *** [_mod_/home/atul/Desktop/VPN/vpnclient] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.27-0.pre2.1mdk'
make: *** [default] Error 2
Failed to make module "cisco_ipsec.ko".
[*************************************************************8
Still the problem exists...need some more inputs
|
|
|
03-04-2005, 03:09 AM
|
#6
|
Senior Member
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090
Rep:
|
Unfortunately this is an error in the Cisco script itself.
The script is attempting to make a module (driver) for the currently installed kernel.
It calls the make routing with "make modules".
However the Makefile which Cisco provided has no entry labeled "modules".
You may want to try to view the actual script and see if maybe there is a minor error in it.
e.g. module is defined but not modules and changing module to modules will fix the error.
The entries or labels are usually suffixed by a colon.
I.e.
modules:
etc.
|
|
|
03-04-2005, 12:41 PM
|
#7
|
Member
Registered: Nov 2004
Posts: 35
Original Poster
Rep:
|
Hi Folks
I downloaded kernel-source-2.6 2.6.8.1-10mdk.rpm and installed it. That create a new symlink on the /usr/src/ directory and now I was able to work through the installation. I think the kernel-source that I installed earlier was not the right one and now it works.
Thanks a lot for your directions/suggestions.
|
|
|
03-05-2005, 05:51 AM
|
#8
|
Senior Member
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090
Rep:
|
That will do it too.
Great!
|
|
|
All times are GMT -5. The time now is 08:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|