Solved

help with gpc

Posted on 1998-09-13
13
284 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
maybe no no httpd.conf 6 61
Impact of disabling SMB v1 on Mac and Linux clients 4 535
How to change the nameserver on Ubuntu Server 6 48
Apache module 5 42
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

809 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