LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "which gcc" (https://www.linuxquestions.org/questions/linux-newbie-8/which-gcc-108196/)

WannaLearnLinux 10-24-2003 09:53 PM

"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.

KDE4me 10-25-2003 12:10 AM

yup, or gcc isn't in the path (but that is unlikely)

WannaLearnLinux 10-25-2003 12:34 AM

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

misophist 10-25-2003 09:38 AM

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.

WannaLearnLinux 10-25-2003 08:43 PM

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 :newbie:

WannaLearnLinux 10-26-2003 12:23 AM

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.

megaspaz 10-26-2003 12:30 AM

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.

WannaLearnLinux 10-26-2003 12:44 AM

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 :(

WannaLearnLinux 10-26-2003 12:42 PM

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?

WannaLearnLinux 10-26-2003 09:03 PM

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 :cry:

misophist 10-26-2003 09:31 PM

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

WannaLearnLinux 10-27-2003 04:49 PM

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 :D

Ok,thanx for helping me,

WannaLearnLinux :newbie:


All times are GMT -5. The time now is 05:52 AM.