Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > package install trouble

Reply
Thread Tools

package install trouble

 
 
ngoc
Guest
Posts: n/a
 
      12-12-2003
Hi
I install Compress::Zlib in Solaris.
> perl Makefile.PL
> make

error message: /usr/ucb/CC language optional software package not
installed.
I have already installed gcc.
What is wrong ?
Ngoc
 
Reply With Quote
 
 
 
 
Sherm Pendley
Guest
Posts: n/a
 
      12-12-2003
ngoc wrote:
> Hi
> I install Compress::Zlib in Solaris.
>
>> perl Makefile.PL
>> make

>
> error message: /usr/ucb/CC language optional software package not
> installed.
> I have already installed gcc.
> What is wrong ?


Sounds like /usr/bin/cc is being used instead of /usr/local/bin/gcc. You
can verify this with "which cc".

Try adjusting your PATH environment variable so that /usr/local/bin
appears before /usr/bin, or set the CC environment variable to point to
the compiler binary you want to use.

sherm--
 
Reply With Quote
 
 
 
 
Tony Curtis
Guest
Posts: n/a
 
      12-12-2003
>> On Fri, 12 Dec 2003 22:40:19 +0100,
>> ngoc <> said:


> Hi I install Compress::Zlib in Solaris.
>> perl Makefile.PL make

> error message: /usr/ucb/CC language optional software
> package not installed. I have already installed gcc. What
> is wrong ?


You mean "/usr/ucb/cc" don't you?

What this means is (probably) that you're trying to add a
module to the perl supplied with Solaris. This perl was built
using Sun's Forte compilers (naturally) and is expecting to
use the same compilers to add things to itself.

The Solaris FAQ should address this:

/usr/ucb/cc...

http://www.science.uva.nl/pub/solari...is2.html#q5.37

perl...

http://www.science.uva.nl/pub/solari...is2.html#q3.75

compilers...

http://www.science.uva.nl/pub/solari...ris2.html#q6.1

IIWY I'd build and install your own perl using gcc, and then
add to that. The CPAN module makes this easier than doing it
by hand.

http://stein.cshl.org/genome_informa...nstalling.html

hth
t
 
Reply With Quote
 
Tassilo v. Parseval
Guest
Posts: n/a
 
      12-13-2003
Also sprach Tony Curtis:
>>> On Fri, 12 Dec 2003 22:40:19 +0100,
>>> ngoc <> said:

>
>> Hi I install Compress::Zlib in Solaris.
>>> perl Makefile.PL make

>> error message: /usr/ucb/CC language optional software
>> package not installed. I have already installed gcc. What
>> is wrong ?

>
> You mean "/usr/ucb/cc" don't you?
>
> What this means is (probably) that you're trying to add a
> module to the perl supplied with Solaris. This perl was built
> using Sun's Forte compilers (naturally) and is expecting to
> use the same compilers to add things to itself.


Not necessarily. As I recall, you can compile XS modules with gcc when
the underlying perl was compiled with suncc (but might have also been
the other way round, not sure).

So it's mostly a matter of setting the CC environment variable so that
it points to the gcc. It'll probably be necessary to weed out switches
unrecognized by gcc from the Makefile as well. The rotten ones will show
up on doing 'make'.

Tassilo
--
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus}) !JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexi ixesixeseg;y~\n~~dddd;eval
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Package HTML - Missing package documentation file jochenhebbrecht@gmail.com Java 1 11-27-2007 01:59 PM
Package that imports with name of dependent package David Pratt Python 4 05-13-2006 05:12 PM
single package import v/s the entire package Parvinder Java 6 02-27-2005 02:02 PM
package module import name clash with global package George P Python 3 09-11-2004 01:19 PM
Importing a package and looping through modules in the package Dave Python 2 02-10-2004 08:14 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57