Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: GCC and Perl: Module installation error cc1

by shmem (Chancellor)
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.

Replies are listed 'Best First'.
Re^2: GCC and Perl: Module installation error cc1
by vishi (Beadle) 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 to some place included in the PERL5LIB environment variable, and edit Alternatively, build a local perl, probably tweaking the spec file of the system perl (from the source rpm).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://919426]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2018-06-18 06:31 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (108 votes). Check out past polls.