Solved

help with gpc

Posted on 1998-09-13
13
277 Views
Last Modified: 2013-11-13
Can someone tell me where to find a gpc that works with redhat 5.1 and help me set it up?  (I found a file  gpc-2.0-1.i386.rpm and it says ld: cannot open crtbegin.o: the file doesn't exist. I don't like to compile gpc by my self.

0
Comment
Question by:pucko
  • 6
  • 5
  • 2
13 Comments
 
LVL 2

Expert Comment

by:JYoungman
ID: 1638007
Just install the libraries that are supposed to go with it.

0
 
LVL 1

Author Comment

by:pucko
ID: 1638008
Hmmm... Is it so smart to install libc-devel whan it says that it conflicts with glibc-devel ????
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1638009
> libc-devel conflicts with glibc-devel
install glibc-devel in a separate directory (for example /usr/local/glib) and use environment variable LD_LIBRARY_PATH when calling gpc
0
 
LVL 1

Author Comment

by:pucko
ID: 1638010
How can I do that using rpm????
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1638011
I'm noted used to rpm, but it should be possible to extract the files from the package without installing at the presetted place.
Probably  rpm --root /you/dir   is what you need.
    man rpm rpm2cpio
for detatils.
0
 
LVL 1

Author Comment

by:pucko
ID: 1638012
How can I do that using rpm????
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 1638013
1. man rpm
2. rpm --root /your/dir/where/to/install/files file.rpm


I'm not shure about 2. 'cause I only have a old rpm distribution.
0
 
LVL 2

Expert Comment

by:JYoungman
ID: 1638014
You should not install libc-devel if you have glibc-devel.  If the gpc package you are using requires libc-devel, you need to compile a newer version, perhaps from the SRPM.

0
 
LVL 1

Author Comment

by:pucko
ID: 1638015
I can't find a sourse rpm. Btw It works now. I installed the libc-devel and saved the files
crtbegin.o  
crtbeginS.o  
crtend.o    
crtendS.o

to a tem dir. Then rpm -e libc-devel and rpm -ivh glibc-devel.XXX.rpm
and then I mved the cdt* from the temp dir tu /usr/lib and now it works so thanks guy's
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 1638016
anybody out there to be graded, pucko ?-)
0
 
LVL 1

Author Comment

by:pucko
ID: 1638017
ahoffmann. Yes...It was youre idea that helped me out. If you mark the question as answerd I'll grade it. Just one question. When I treid to put the crt files abowe in /usr/lib/libc-devel and added it to my LD_LIBRARY_PATH It doesn't worked. But it works when I copied the files to /usr/lib. Do you know why???
0
 
LVL 51

Accepted Solution

by:
ahoffmann earned 200 total points
ID: 1638018
No, not exactly. Some Linux distributions also know of

   LD_AOUT_LIBRARY_PATH

Did rpm start a compiler or linker?
0
 
LVL 1

Author Comment

by:pucko
ID: 1638019
I don't know. All I know is that I use RedHat 5.1
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now