philip terry wrote:
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 deniedphilip-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 XUnix's restricted permission directories.> How to proceed?a) Perhaps run ./configure as: sudo ./configureJust 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?
I'm semi-familiar with sudo on Linux, but don't understand sudo in an OS X context.
I seem to have just install libpng fine from source on my Mac. The problem might be that you in /usr/local trying to build things? Usually you build everything in your home directory (I create a subdir called "src"), and only the "make install" command impacts the important areas of disk like /usr/local. I just did this under my home directory: Jay-Hannahs-Computer:~ jhannah$ pwd /Users/jhannah Jay-Hannahs-Computer:~ jhannah$ cd src Jay-Hannahs-Computer:~/src jhannah$ wget http://easynews.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.8-config.tar.gz - results snipped -Jay-Hannahs-Computer:~/src jhannah$ tar xvzf libpng-1.2.8-config.tar.gz - results snipped -
Jay-Hannahs-Computer:~/src jhannah$ cd libpng-1.2.8-config Jay-Hannahs-Computer:~/src/libpng-1.2.8-config jhannah$ ./configure- results snipped - Jay-Hannahs-Computer:~/src/libpng-1.2.8-config jhannah$ make
- results snipped - Jay-Hannahs-Computer:~/src/libpng-1.2.8-config jhannah$ su Password: [Jay-Hannahs-Computer:jhannah/src/libpng-1.2.8-config] jhannah# make install - results snipped - And that all worked fine, so now I guess I have libpng on my laptop? :) Have you activated the root account on your Mac and have that password available to you? (Want to bring your Mac to the next meeting?) HTH, j