LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   gcc compiler RPM for Fedora Core 2 system (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-compiler-rpm-for-fedora-core-2-system-620479/)

thiagarn 02-11-2008 11:36 PM

gcc compiler RPM for Fedora Core 2 system
 
Hello all,

I'm a newbie to Linux.

I installed Fedora Core 2 in one of my systems through CDs (it came with 4 cds).
After i booted the first Cd it started the installation process and then continued with second CD.
Again after a reboot, it had some settings and then later asked to install additional cds but when i attempted to do that it said it cannot process the data in the CD. The 3 and 4 cds have RPMS.

Later after the system booted i tried to install the RPMS for gcc compiler from the CD. (gcc34-c++-3.4.0-1)

I used this command -

rpm -ivh gcc34-c++-3.4.0-1.rpm

I had two dependencies but then later when i installed the appropriate RPMS it was fine.


But it always gave me this error -
error on dependencies
gcc34=3.4.0-1 is needed by gcc34-c++-3.4.0-1


I'm not sure what it is looking for. I'm stuck. Can anyone please help me out.

Thanks in advance,
Nandhini

Nauntilus 02-12-2008 12:12 AM

Are you sure you need it? Normally it should install with the OS. You can test it using g++ as the command then the file name you are trying to compile. I am not sure if that what is you need.

knudfl 02-12-2008 01:17 AM

Why not make a textfile with your installed stuff??
command 'rpm -qa | sort > my_package_list.txt' (or any name for the textfile)
You should have a gcc installed, like nauntilus tells you, in my archives the
version for fedora 2 is gcc-3.3.3-7.i386.rpm
So please install gcc-c++-3.3.3-7.i386.rpm for c++
then it will all fit together.
(All the 3.4 versions are there too, don't use them)

thiagarn 02-12-2008 09:39 AM

Ok Thanks. Can u please let me know where i can find gcc-c++-3.3.3-7.i386.rpm ?also can anyone tell me why during installing OS i was unable to install the RPM cds?

lazlow 02-12-2008 12:18 PM

FC2 is beyond EOL (End of Life) by years. The current version is Fedora 8. As there will be no updates available for FC2 and very few people have run it in years, I would strongly suggest you update. Fedora 8 is available for free download. This will also save you tons of headaches as the out of box capabilities have grown exponentially.

thiagarn 02-12-2008 12:24 PM

The reason i'm sticking with older version of Linux is because, i using a tool for my project which would work only with older versions of Linux kerenls. (2.6.5 kernels) .Any suggestions?

lazlow 02-12-2008 01:17 PM

What is the tool? It is a pretty rare thing to find something that will not work with a current kernel (2.6->2.6) that does not have an updated replacement.

thiagarn 02-12-2008 02:51 PM

The tool is Sebek for capturing attackers keystorkes.It work only with Linux kernels 2.6.15 or below. I moved to FC5 now. My problem now is how do i install a set of RPMS from the Cds i have? i'm stuck. Dont know how to proceed.

Thanks

lazlow 02-12-2008 05:37 PM

Look in "man yum". You are looking for "localinstall"

lazlow 02-12-2008 05:45 PM

Are you running an older version of sebek becuase I could not find a limit on there web page that matches 2.615>. Current version would be 3.2.0 (as far as I can tell).

http://www.honeynet.org/tools/sebek/

thiagarn 02-12-2008 06:26 PM

I'm using 3.2.0 sebek version. Also i moved to Fedora Core 5. Current version of kernels is 2.6.15-1.2054

I'm now facing an issue where my software code tries to find the kernel source in Linux and gives this error -

Kernel source should be installed in /lib/modules/2.6.15-1.2054_FC5/build

Basically, the program looks for a the kernel source files.

Can anybody point me on how to get the kernel source?

Thanks
Nandhini

lazlow 02-12-2008 06:29 PM

What I meant was I could not see anything that said you could not use a kernel newer than .15 in the sebek documents.


yum install kernel-devel

That (above) should clear up your error.

thiagarn 02-12-2008 06:34 PM

The system i'm using is not connected to the net.

Any other means of getting this error fixed? Sorry if this a dumb question.

lazlow 02-12-2008 06:44 PM

Running any Fedora system without the net is going to be difficult (at best).

The yum localinstall should not involve the net. I do not know if the kernel-devel will be on the install disks or not (should be). The version number of the kernel and kernel-devel HAVE to be exact matches or it will not work.

Again where did you find any information that said sebek will not work on newer kernels?

thiagarn 02-12-2008 07:21 PM

I'm doing a Honeynet project. So i got the sebek tool from their website. And i read some of the emails in their workgroups which said that sebek will not work with newer kernels. Thats where i got to know.

Also another question about the kernel source. I do not have the rpm in the CD. Would it possible for u to point me to the link?


All times are GMT -5. The time now is 03:29 AM.