Just in case you do have a real compiler under /opt/SUNWspro/bin/cc, you might try adding /opt/SUNWspro/bin/ to your search path (at the beginning, i.e. export PATH=/opt/SUNWspro/bin:$PATH) before you start the build.
As root or normal user? I have this for both cases
root (before exporting as you suggested):
sadm@bioinfo-z:~$ su -
Password:
root@bioinfo-z:~# printenv
SHELL=/bin/bash
TERM=vt100
USER=root
PATH=/usr/local/bin:/usr/ucb:/bin:/usr/bin:/etc:/usr/sfw/bin:/opt/sfw/
+bin:/opt/SUNWspro/bin:/usr/ccs/bin:/opt/sfw/bin:/opt/SUNWicg/SunScree
+n/bin
PWD=/home/root
SHLVL=1
HOME=/home/root
LOGNAME=root
_=/usr/local/bin/printenv
normal user:
sadm@bioinfo-z:~$ printenv
LC_MONETARY=en_US.ISO8859-1
TERM=vt100
SHELL=/bin/bash
SSH_CLIENT=172.18.177.29 1681 22
PERL5LIB=/home/sadm/lib/site_perl/sun4-solaris-64int:/home/sadm/lib/si
+te_perl/
LC_NUMERIC=en_US.ISO8859-1
SSH_TTY=/dev/pts/21
USER=sadm
MAIL=/var/mail//sadm
PATH=/home/sadm/.perl/bin:/home/sadm/bin:/usr/local/bin:/usr/bin:/usr/
+sfw/bin:/opt/sfw/bin:/opt/SUNWspro/bin:/usr/ccs/bin
LC_MESSAGES=C
LC_COLLATE=en_US.ISO8859-1
PWD=/home/sadm
EDITOR=vim
TZ=Singapore
SHLVL=1
HOME=/home/sadm
LOGNAME=sadm
SSH_CONNECTION=172.18.177.29 1681 192.168.24.136 22
LC_CTYPE=en_US.ISO8859-1
_=/usr/local/bin/printenv
And also I have:
sadm@bioinfo-z:~$ perl -ve
This is perl, v5.8.7 built for sun4-solaris-thread-multi
sadm@bioinfo-z:~$ which perl
/home/sadm/.perl/bin/perl
and as root I have:
root@bioinfo-z:~# perl -ve
This is perl, v5.8.4 built for sun4-solaris-64int
(with 28 registered patches, see perl -V for more detail)
root@bioinfo-z:~# which perl
/bin/perl
and after exporting export PATH=/opt/SUNWspro/bin:$PATH
as root. Doing make give me exactly the same error message
as my OP.
---
neversaint and everlastingly indebted.......
| [reply] [d/l] [select] |
so, apparently, you have two Perl installations, which you should
take care to not mix up. (BTW, I said perl -V (capital V) -
this would've shown the compiler and other settings that the particular
version of Perl has been built with. The same compiler should be used
to build extensions...).
Just to recap (for me, I'm slowly beginning to get confused :),
presuming you want to install the GD binding for the Perl 5.8.7 (in your home(?)),
are you still getting the same error cannot find include file: <gd.h>, if
you run /home/sadm/.perl/bin/perl Makefile.PL && make as your
regular user, and if so, is the header file gd.h in fact
accessible under the include path that is specified on the cc
command line (i.e. -I/usr/local/include)?
| [reply] [d/l] [select] |
so, apparently, you have two Perl installations, which you should take care to not mix up. (BTW, I said perl -V (capital V) - this would've shown the compiler and other settings that the particular version of Perl has been built with. The same compiler should be used to build extensions...).
Ok in my home I have this
sadm@bioinfo-z:~$ perl -V
Summary of my perl5 (revision 5 version 8 subversion 4) configuration:
Platform:
osname=solaris, osvers=2.10, archname=sun4-solaris-64int
uname='sunos localhost 5.10 sun4u sparc SUNW,Ultra-2'
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultipl
+icity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xar
+ch=v8 -D_TS_ERRNO',
optimize='-xO3 -xspace -xildoff',
cppflags=''
ccversion='Sun WorkShop', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=87654321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=1
+6
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='of
+f_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc
perllibs=-lsocket -lnsl -ldl -lm -lc
libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-R /usr/
+perl5/5.8.4/lib/sun4-solaris-64int/CORE'
cccdlflags='-KPIC', lddlflags='-G'
Characteristics of this binary (from libperl):
Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
Locally applied patches:
22667 The optree builder was looping when constructing the ops
+ ...
22715 Upgrade to FileCache 1.04
22733 Missing copyright in the README.
22746 fix a coredump caused by rv2gv not fully converting a PV
+ ...
22755 Fix 29149 - another UTF8 cache bug hit by substr.
22774 [perl #28938] split could leave an array without ...
22775 [perl #29127] scalar delete of empty slice returned garb
+age
22776 [perl #28986] perl -e "open m" crashes Perl
22777 add test for change #22776 ("open m" crashes Perl)
22778 add test for change #22746 ([perl #29102] Crash on assig
+n ...
22781 [perl #29340] Bizarre copy of ARRAY make sure a pad op's
+ ...
22796 [perl #29346] Double warning for int(undef) and abs(unde
+f) ...
22818 BOM-marked and (BOMless) UTF-16 scripts not working
22823 [perl #29581] glob() misses a lot of matches
22827 Smoke [5.9.2] 22818 FAIL(F) MSWin32 WinXP/.Net SP1 (x86/
+1 cpu)
22830 [perl #29637] Thread creation time is hypersensitive
22831 improve hashing algorithm for ptr tables in perl_clone:
+...
22839 [perl #29790] Optimization busted: '@a = "b", sort @a' .
+..
22850 [PATCH] 'perl -v' fails if local_patches contains code s
+nippets
22852 TEST needs to ignore SCM files
22886 Pod::Find should ignore SCM files and dirs
22888 Remove redundant %SIG assignments from FileCache
23006 [perl #30509] use encoding and "eq" cause memory leak
23074 Segfault using HTML::Entities
23106 Numeric comparison operators mustn't compare addresses o
+f ...
23320 [perl #30066] Memory leak in nested shared data structur
+es ...
23321 [perl #31459] Bug in read()
SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
Built under solaris
Compiled at Feb 13 2006 05:12:02
%ENV:
PERL5LIB="/home/sadm/lib/site_perl/sun4-solaris-64int:/home/sadm/l
+ib/site_perl/"
@INC:
/home/sadm/lib/site_perl/sun4-solaris-64int
/home/sadm/lib/site_perl//5.8.4/sun4-solaris-64int
/home/sadm/lib/site_perl//5.8.4
/home/sadm/lib/site_perl/
/usr/perl5/5.8.4/lib/sun4-solaris-64int
/usr/perl5/5.8.4/lib
/usr/perl5/site_perl/5.8.4/sun4-solaris-64int
/usr/perl5/site_perl/5.8.4
/usr/perl5/site_perl
/usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int
/usr/perl5/vendor_perl/5.8.4
/usr/perl5/vendor_perl
presuming you want to install the GD binding for the Perl 5.8.7 (in your home(?)),
Yes, that's my intention.
are you still getting the same error cannot find include file: <gd.h>, if you run /home/sadm/.perl/bin/perl Makefile.PL && make as your regular user, and if so, is the header file gd.h in fact accessible under the include path that is specified on the cc command line (i.e. -I/usr/local/include)?
Yes, the same error I have.
---
neversaint and everlastingly indebted.......
| [reply] [d/l] |