LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-04-2003, 08:33 PM   #16
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Original Poster
Rep: Reputation: 15

(Possibly bad form to reply to yourself, but I've got an update)

I did a search of Linuxquestions, and found a thread about installing kernel source. It pointed me to kernel.org, and I've now downloaded linux 2.4.21 tar.gz

So, before I do something incredibly newbie-silly, I would like someone to confirm that I'm on the right track? (Fingers crossed...)
 
Old 12-04-2003, 08:38 PM   #17
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
It's strange that you can't find kernel-source if you had all 3 install CDs. Are you certain you spelled kernel correctly? Lots of folks type kernal instead.

root@tinwhistle /usr/src # urpmi kernel-
The following packages contain kernel-: kernel-alert ksymoops kernel-source kernel-2.4.19.35mdk kernel-linus2.4 kernel-BOOT-2.4.19.16mdk kernel-doc-pdf kernel-smp-2.4.19.16mdk kernel-2.4.19.16mdk kernel-doc kernel-doc-ps kernel-BOOT-2.4.19.35mdk kernel-enterprise-2.4.19.16mdk kernel-enterprise-2.4.19.35mdk kernel-smp-2.4.19.35mdk kernel-secure-2.4.19.16mdk kernel-doc-html kernel-headers pcmcia-cs kernel-linus2.2 kernel-secure-2.4.19.35mdk
root@tinwhistle /usr/src # urpmi kernal-
no package named kernal-

You should be able to find it somewhere on the Mandrake ftp mirrors and download it if need be.

If this is a fresh install, it might pay you to do a new install choosing the expert method where you check the packages and make sure you install the developmental packages and kernel developmental packages.
 
Old 12-04-2003, 08:48 PM   #18
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
It might work. Mandrake does use a customized kernel, however, so I like to stick to their stuff. Here is what I have in my Mandrake /usr/src directory.

root@tinwhistle /usr/src # ls -al
total 16
drwxr-xr-x 4 root root 4096 Aug 12 23:44 ./
drwxr-xr-x 16 root root 4096 Aug 12 14:31 ../
lrwxrwxrwx 1 root root 18 Aug 12 23:44 linux -> linux-2.4.19-35mdk/
drwxr-xr-x 18 root root 4096 Aug 12 23:43 linux-2.4.19-35mdk/
drwxr-xr-x 7 root root 4096 Aug 12 09:34 RPM/
 
Old 02-03-2004, 10:34 PM   #19
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Rep: Reputation: 31
gcc

sorry for using this post but it looks same to my problem.

I'm trying to get Chkrootkit installed.But i think my Gcc is too old.

[grinder@linuxbox chkrootkit-0.43]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.2.2/specs
Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)

Because when I type ./configure as found in this post:

http://linuxquestions.org/questions/...threadid=45094

I get this:

[grinder@linuxbox chkrootkit-0.43]$ ./configure
bash: ./configure: No such file or directory

I was trying it few months ago and I just couldn't do that.So I'm back bit smarter then before,I hope But not smart enough.

Anyway I did update also and kernel is:

[grinder@linuxbox grinder]$ uname -r
2.4.21-0.13mdk

And when I look ls -l in /usr/bin (where is gcc) I found this i don't understand:

lrwxrwxrwx 1 root root 21 Jan 28 08:06 gcc -> /
etc/alternatives/gcc*

...does this mean update I did few days ago?.......

-rwxr-xr-x 1 root root 81644 Mar 3 2003 gcc-3.2.
2*
-rwxr-xr-x 1 root root 23 Mar 3 2003 gcc3.2-v
ersion*

Anyway my Q is why I can't install its Chkrootkit?
I even haven't found anyone else with same problem here at LQ.
 
Old 02-03-2004, 10:47 PM   #20
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
I have some questions.

Was source code downloaded? Was it unzipped and extracted? Did you cd to the directory needed? Was the README read? Was the INSTALL read? Was the first step in the INSTALL to command ./configure?

Last edited by fancypiper; 02-03-2004 at 10:57 PM.
 
Old 02-03-2004, 11:01 PM   #21
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Rep: Reputation: 31
hi

Quote:
Originally posted by fancypiper
[B]I have some questions.

Was [b]source code downloaded? Was it unzipped and extracted? Did you cd to the directory needed? Was the README read? Was the INSTALL read? Was the first step in the INSTALL to command ./configure?

Thanx for fast reply,

i downloaded chkrootkit.tar.gz and then I did :
grinder@linuxbox grinder]$ tar xzvf chkrootkit.tar.gz

and cd in that directory and read README where :
5. Installation
---------------

To compile the C programs type:

# make sense

After that it is ready to use and you can simply type:

# ./chkrootkit

But I was trying do that way someone recommended in another threat.

YES I did as non-root user $./configure , and this happened:

grinder@linuxbox chkrootkit-0.43]$ ./configure
bash: ./configure: No such file or directory

Thank you
 
Old 02-03-2004, 11:10 PM   #22
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
You should always first try it the way the README and INSTALL files state and post any error messages you get if that method fails.
 
Old 02-03-2004, 11:22 PM   #23
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Rep: Reputation: 31
thanx for fast reply

Yes you are right. Here's error:

[root@linuxbox chkrootkit-0.43]# make sense
gcc -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
gcc -DHAVE_LASTLOG_H -o chkwtmp chkwtmp.c
gcc -DHAVE_LASTLOG_H -o ifpromisc ifpromisc.c
gcc -o chkproc chkproc.c
gcc -o chkdirs chkdirs.c
gcc -o check_wtmpx check_wtmpx.c
gcc -static -o strings-static strings.c
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [strings-static] Error 1

Looks Like I'm missing some "lc" at this time.Last time it was gcc.Not bad

Could you pls help me with this? I'm working on another things here at MDK ,few of them I can't have done. I always give up for few days or weeks and go back trying it again and again.If not succesfull trying another.Not easy.
 
Old 02-03-2004, 11:59 PM   #24
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
What does urpmi lc return? Perhaps you can install the dependencies with urpmi.
 
Old 02-04-2004, 12:15 AM   #25
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Rep: Reputation: 31
[root@linuxbox grinder]# urpmi lc
The following packages contain lc: mailcap liblcms1 perl-Date-Calc fetchmailconf mozilla-spellchecker liblcms1-devel

i did update through MDK control center.Well does urpmi means update?

Or is this something else? http://urpmi.org/easyurpmi/index.php

Sorry just newbie learning Linux for few months now.
 
Old 02-04-2004, 12:52 AM   #26
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Rep: Reputation: 31
I found that -lc are libraries,again. Is there any other distro better in libraries then MDK?

Gotta go sleep.Tired.
 
Old 02-04-2004, 09:15 AM   #27
little_ball
Member
 
Registered: Oct 2003
Location: teddy bears Land
Distribution: Slackware 10
Posts: 176

Rep: Reputation: 30
its very weird that MDK can't find the kernel source or gcc whit urpmi, but i have those problem before whit MDK 9.1 did you people, know if in the source urpmi file it points to the mandrake 3 CD source? if urpmi list doesn't have it in his source it would never find them obviously, before trying urpmi, i sincerely suggest that you check if the 3 CD source are in the urpmi list go to K-Configurations-packages or something like that, go to the point where mandy give you the options mandrake updates, mandrake source software, etc. I think the source install files is the one called mandrake source software or mandrake packages softwares, you have to open it, i will turn on a nice GUI and will show you, what Mandrake have in his source file list to search for packages, if the list of the 3 CD aren't there is impossible that mandy look for packages that it supposed to be in the install CD, you could added the CD to the list or you could, search in each CD the packages you need, open a console, an as root do cd mnt/cdrom then ls to see the packages of the cd, go to the one named Mandrake, then RPMS where mandy put is rpm packages and there search for the one you need example kernel-source and gcc in one of the 3 CD is, when you find it just do rpm -Uhv package-named.rpm as root and voila there it is.
 
Old 02-04-2004, 05:30 PM   #28
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Rep: Reputation: 31
hi little_ball

Quote:
Originally posted by little_ball
its very weird that MDK can't find the kernel source or gcc whit urpmi, but i have those problem before whit MDK 9.1 did you people, know if in the source urpmi file it points to the mandrake 3 CD source? if urpmi list doesn't have it in his source it would never find them obviously, before trying urpmi, i sincerely suggest that you check if the 3 CD source are in the urpmi list go to K-Configurations-packages or something like that, go to the point where mandy give you the options mandrake updates, mandrake source software, etc. I think the source install files is the one called mandrake source software or mandrake packages softwares, you have to open it, i will turn on a nice GUI and will show you, what Mandrake have in his source file list to search for packages, if the list of the 3 CD aren't there is impossible that mandy look for packages that it supposed to be in the install CD, you could added the CD to the list or you could, search in each CD the packages you need, open a console, an as root do cd mnt/cdrom then ls to see the packages of the cd, go to the one named Mandrake, then RPMS where mandy put is rpm packages and there search for the one you need example kernel-source and gcc in one of the 3 CD is, when you find it just do rpm -Uhv package-named.rpm as root and voila there it is.
So you mean I need install kernel-source or newer gcc from MDK cds manually?

And yes I found "Software source manager" and started it and then it showed all 3 cds and update.

I'll have to look for this -lc library somewhere,but my friends got problems with his box so I can't do that now,but I'll be back in about 3 hours if you still be here

Thanx,

 
Old 02-05-2004, 05:36 PM   #29
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Rep: Reputation: 31
ok,so

nobody knows what will fix my problem?Pls,I really don't know what to do.

How did you guys (babes) made Chkrootkit install in MDK 9.1? I can't
 
Old 02-07-2004, 04:27 PM   #30
little_ball
Member
 
Registered: Oct 2003
Location: teddy bears Land
Distribution: Slackware 10
Posts: 176

Rep: Reputation: 30
look, you should check the config.log of the program for look why it gives you the error, what are you missing. I don't know what library does linux means when he says -lc, it could be associated whit any executable that you don't have but i don't know wich one. or you are missing the library -lc or their are in different PATH that ./configure can't find.

Last edited by little_ball; 02-07-2004 at 04:56 PM.
 
  


Reply


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
Mandrake cannot find my gcc cajunaggie Linux - Newbie 2 09-30-2004 07:32 AM
ctype_tolower ctype_tupper not find when building GCC 3.2 on mandrake 9.1 with LFS4.1 toon Linux From Scratch 2 10-07-2003 12:39 PM
mandrake 9.1 cant find gcc ziegen Linux - Software 11 09-20-2003 05:36 AM
Still cant find and use gcc linuxlah Linux - Software 3 06-06-2002 12:14 AM
Cant find GCC manzoor Programming 3 10-12-2001 01:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:38 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration