Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: GCC and Perl: Module installation error cc1

by shmem (Canon)
on Aug 09, 2011 at 09:07 UTC ( #919426=note: print w/ replies, xml ) Need Help??


in reply to GCC and Perl: Module installation error cc1

So, am I right in assuming that Perl has gotten "disconnected" from the gcc it was configured to use?

Yes. From the listing you provided, I would say that somebody fouled up the system for whatever reason. Run rpm -qifl /usr/lib/gcc/4.1.1 and rpm -qfl /usr/lib/gcc/4.1.2, perhaps you will find a gcc binary that corresponds to the version you need. If there is, you could link that binary to ~/bin/gcc and have ~/bin first in your $PATH. That would be a quick fix.

But what you probably should do is: Record the package details and installation date of the gcc RPMs and write your Sys Admins & their bosses that such a system is inacceptable.


Comment on Re: GCC and Perl: Module installation error cc1
Select or Download Code
Re^2: GCC and Perl: Module installation error cc1
by vishi (Sexton) on Aug 09, 2011 at 11:14 UTC

    Wow thanks... So, my fears were right... I am now thinking of installing a local version of Perl under my home directory and a local installation of gcc as well. I guess this is quicker than getting the system configured correctly.

    Any idea on how I can get a local Perl installation and a local gcc to go along with it? I read some topics on the Internet on how to do this.. but I'm not sure whether I need to get only a newer version of Perl, or whether I need to get both gcc and Perl, as a "pack"?

      Any idea on how I can get a local Perl installation and a local gcc to go along with it?

      Er... yes. But last time I built my own gcc was gcc 1.83 on a SPARCstation ELC, and building stage1 through stage3 took 3 days... Why don't you just blame the admins of that box and let them do the job?

      Another method that might work for you... grab the desired RPM package, dump it into your home directory with

      server$ mkdir gcc; cd gcc server$ rpm2cpio ~/gcc*.rpm | cpio -i --make-directories

      and set the search path and the spec file. You will have to tweak the cflags or such of your perl, that might work copying Config.pm to some place included in the PERL5LIB environment variable, and edit Config.pm. Alternatively, build a local perl, probably tweaking the spec file of the system perl (from the source rpm).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://919426]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2014-09-21 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (165 votes), past polls