Pre-built package for Perl on Solaris 5.8 ?
Hi,
I wish to install a newer version of Perl (the old version is 5.003 or something) on Solaris 5.8. Hoever, I have little or no knowledge of Solaris. I was hoping I would be able to find a pre-built package for it but my google searches have not yielded anything. Basically, i wan to install a new version of Perl on a machine on which I do not have superuser priviledges. Any help woul be appreciated. Thanks in advance. |
|
Most of Solaris packages can't be installed in a non root user owned directory, moreover, the pkgadd command is restricted to root.
Your best options are either to build perl from the source code, specifying an install directory of yours, or to forget about perl and use a real programming language ... :D |
Quote:
NDBM_File.xs:4: ndbm.h: Permission denied NDBM_File.xs:7: parse error before `DBM' NDBM_File.xs:7: warning: no semicolon at end of struct or union NDBM_File.xs:13: parse error before `}' NDBM_File.xs:13: warning: data definition has no type or storage class NDBM_File.xs:15: parse error before `*' NDBM_File.xs:15: warning: data definition has no type or storage class NDBM_File.xs:16: parse error before `datum_key' NDBM_File.xs:16: warning: data definition has no type or storage class NDBM_File.xs:17: parse error before `datum_value' NDBM_File.xs:17: warning: data definition has no type or storage class NDBM_File.c: In function `XS_NDBM_File_TIEHASH': NDBM_File.c:40: `NDBM_File' undeclared (first use in this function) NDBM_File.c:40: (Each undeclared identifier is reported only once NDBM_File.c:40: for each function it appears in.) NDBM_File.c:40: parse error before `RETVAL' NDBM_File.xs:29: `DBM' undeclared (first use in this function) NDBM_File.xs:29: `dbp' undeclared (first use in this function) NDBM_File.xs:31: `RETVAL' undeclared (first use in this function) NDBM_File.xs:33: parse error before `Perl_safesysmalloc' NDBM_File.c: In function `XS_NDBM_File_DESTROY': NDBM_File.c:67: `NDBM_File' undeclared (first use in this function) NDBM_File.c:67: parse error before `db' NDBM_File.c:71: `db' undeclared (first use in this function) NDBM_File.c: In function `XS_NDBM_File_FETCH': NDBM_File.c:91: `NDBM_File' undeclared (first use in this function) NDBM_File.c:91: parse error before `db' ----------------------------------------------------------------------------------- I see that most of the errors have to do NDBM_File. Could someone please help? Thanks in advance. |
The first error is usually the one to focus on:
NDBM_File.xs:4: ndbm.h: Permission denied What gives this command ? ls -l /usr/include/ndbm.h |
Quote:
-rw-r--r-- 1 root 3141 Jan 5 2000 /usr/include/ndbm.h So I guess only root has permission to do anything with it! |
Well, this is weird, you have the right to read this file and this must be enough.
There's no readon I see that can justify perl to modify ndbm.h, as it is a standard system file. Perhaps copying ndbm.h to a directory you own, and telling the perl builder to look at this directory first (I don't known if this is doable) may help. |
Quote:
Sorry if these questions sound naive. I have no experience with these things. |
There are no naive questions. :)
Create a bin directory in your home, copy your binary in it, then add this to your .profile (or .bash_profile): PATH=~/bin:$PATH |
Thanks again but it doesn't seem to work. I am using a tcsh shell and I copied the code you suggested to the .bashrc file. That didn't work.
|
As its name suggests, .bashrc is for bash.
For tcsh, you have to set the path in .tcshrc: Probably something like: set path=( ~/bin $path ) Not really sure for the syntax, I left csh a long time ago to ksh. |
Quote:
|
All times are GMT -5. The time now is 01:37 AM. |