LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-24-2003, 10:53 PM   #1
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Rep: Reputation: 31
"which gcc"


Hi all,

I'm newbie and trying install Chkrootkit.But when i do "make sense' it says something about "gcc: command not found".
So I was helped I need Gcc.
I typed :

[wannalearnlinux@localhost wannalearnlinux]$ which gcc
which: no gcc in (/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:/home/wannalearnlinux/bin)

Does it mean that it is not installed? (it seems to me but I'm not 100% sure)

Sorry for stupid newbie question.
 
Old 10-25-2003, 01:10 AM   #2
KDE4me
Member
 
Registered: Apr 2003
Location: Australia
Distribution: RedHat 9.0 / Slackware 9.0/ FreeBSD 4.8 / Solaris 8 x86 / Mandrake 9.0
Posts: 90

Rep: Reputation: 15
yup, or gcc isn't in the path (but that is unlikely)
 
Old 10-25-2003, 01:34 AM   #3
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Original Poster
Rep: Reputation: 31
thanks a lot,

i feel stupid but i really don't know much about Linux.learning everyday.
Going to finishe it tomorrow,thanks for reply,

WannaLearnLinux
 
Old 10-25-2003, 10:38 AM   #4
misophist
Member
 
Registered: Aug 2003
Location: here
Distribution: suse 8.2
Posts: 169

Rep: Reputation: 30
gcc has a new version release out. Some programs compile only with the old version, some only with the new. It's a problem. Installing both versions seems to be a bad idea. Perhaps someone else knows more. If it's worth the effort to you, you could get rpm's for each and remove and install them as needed. I compiled chrootkit 0.4 with gcc 3.3.

gcc has to be on the installation cd. 'locate gcc' or 'whereis gcc' will find it if it's on your drive.

Last edited by misophist; 10-25-2003 at 10:45 AM.
 
Old 10-25-2003, 09:43 PM   #5
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Original Poster
Rep: Reputation: 31
thanx

thanx for reply.
I fount RPM for newest Gcc.

I'll do install now,didn't have a time yet.

Hope it is gonna work so I can use Chkrootkit finally.

WannaLearnLinux
 
Old 10-26-2003, 01:23 AM   #6
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Original Poster
Rep: Reputation: 31
well,here I'm again.Are u happy? .)

Sorry but having terrible time.

I was trying installing new Gcc 3.3.1 RPM,but it said i need few more things to install first.
So I found Gcc on Install cd from MDK 9.1,it is version Gcc 3.2.2 RPM.
Everything went ok.

"but" when i type in Chkrootkit dir :

[root@localhost chkrootkit-0.42b]# 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 strings.c
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [strings] Error 1


So I need another thing to install.

Question is what is this "LC" i need and where should i grub it.

Sorry but it isn't easy for my as newbie.Anyway I won't give up so easy! I'll fight again again again .)

Please help me if u can,

I'll appreciate it.
 
Old 10-26-2003, 01:30 AM   #7
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
i'm not sure, but i think you indeed can in fact install multiple, different versions of gcc get put in their own directories and their executables named differently. i've got gcc2.96 and gcc3.1 on my comp. to invoke 2.96 it's gcc or g++. to invoke gcc 3.1, it's gcc3 or g++3. there's no conflicts, that i'm aware of.
 
Old 10-26-2003, 01:44 AM   #8
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Original Poster
Rep: Reputation: 31
thanx megaspaz

yes I have the new Gcc,but as i said,it needed too many things installed first.So I thought it might be better to get some older one.Which I found on cd MDK9.1
3.2.2. is not that old and installation went ok.

Well,looks like for one thing I need another 10.Getting tired.

thanx for reply,gotta go sleep
 
Old 10-26-2003, 01:42 PM   #9
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Original Poster
Rep: Reputation: 31
Unhappy ok

so I'm trying installing Gcc 3.3.1 MDK.

>it says I need those: binutils=2.14.90.0.5-1MDK
gcc-cpp=3.3.1-2MDK
libgcc=3.3.1-2MDK

then I"m installing first one binutils,didn't have chance to look for other ones yet,because...

>it says I need another: libbinutils2=2.14.90.0.5-2MDK
libbfd-2.14.90.0.5.so
libopcodes-2.14.90.0.5.so

well,I found first one libbinutils2.

But my question is where are those ".so" files?

What else I'm gonna need for installing gcc-cpp to get Gcc 3.3.1 and another one.

Isn't that some one file that has all kinda ingredients I should need?

I'm feeling bad to post here everyday,but where else I'll get helped?
 
Old 10-26-2003, 10:03 PM   #10
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Original Poster
Rep: Reputation: 31
oooopps

please guys.

How did you do the install of your Chkrootkit?

I don't think I'm only one who has same problem.

Please help me
 
Old 10-26-2003, 10:31 PM   #11
misophist
Member
 
Registered: Aug 2003
Location: here
Distribution: suse 8.2
Posts: 169

Rep: Reputation: 30
I apologize for wasting time. On looking in the directory of chrootkit 0.40, I see that it is one of those rare programs that doesn't need to be installed. Execute the shell script 'chkrootkit' in the chkrootkit directory. In 0.40, at least, that's all it takes. Just in case, it's:

cd chkrootkit_directory
./chkrootkit
 
Old 10-27-2003, 05:49 PM   #12
WannaLearnLinux
Member
 
Registered: May 2003
Location: California
Distribution: Slax
Posts: 262

Original Poster
Rep: Reputation: 31
Thumbs up hohohoooooo

thanx for reply.

Looks like it is work now.But does it same job as with all those Gcc,etc. installed?

Anyway haven't see any "infected" or "detected" files,which is

Ok,thanx for helping me,

WannaLearnLinux
 
  


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
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 02:03 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 05:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 04:07 PM
"perl Makefile.PL" complains about cc & gcc (self solved tip) Raptor Ramjet Slackware 2 09-13-2004 03:24 PM


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