[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omaha.pm] Preparation for use of GD::Graph & Perl



Hello,

Thanks Jay for your response about installation of libraries in preparation for installation of GD-2.30 Perl module from CPAN.

Taking your advice (of only in stalling required stuff), of the possible libraries, documentation with GD-2.30 Perl module "requires":
1. zlib
2. libpng
3. gd graphics library (gd-2.0.33, libgd, www.boutell.com/gd/)
presumably in this order.

So installed zlib in /usr/local/zlib using:
./configure
make test
make -n install  #to see what directories installed into
sudo make install

Did't see any error messages.

Then attempted to install libpng.  There are a number of sample Makefiles could start with, but then would need to know how to possibly modify the file.  So instead tried:
./configure

Result: (failed)

philip-terrys-power-mac-g5:/usr/local/libpng mterry$ ./configure
./configure: line 90: conf1621.sh: Permission denied
./configure: line 91: conf1621.sh: Permission denied
chmod: conf1621.sh: No such file or directory
./configure: line 203: conf1621.file: Permission denied
./configure: line 1119: config.log: Permission denied
philip-terrys-power-mac-g5:/usr/local/libpng mterry$ 

The relevant lines 90 & 91 in the "configure" file are:

88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi

So "configure" trying to modify/create a file in "/bin", one of OS X Unix's restricted permission directories.

How to proceed?

a) Perhaps run ./configure as:
sudo ./configure

Just assume this won't "damage" "/bin" directory, or can recover? 

b) Or perhaps try learn enough about the installation, the sample Makefiles to use/modify one of them?

Comments appreciated,
Mike Terry