I've successfully built a library I'm using on Ubuntu Linux 8.04 (both x86 and x86-64) and now I'm building it on SuSE Linux 9.1 (x86-64). I set the environment variable required for the make script exactly as I set it on the other Linux computers. When I run the make script, I get an error citing that $DEVDIR, which is the root development directory, is not a valid directory. Here's the pertinent part of the script I'm running:
Code:
#!/bin/sh
if test "$DEVDIR" = "" ; then
echo "Err: DEVDIR undefined...."
exit;
fi
if test ! -d $DEVDIR ; then
echo "invalid development root directory: $DEVDIR"
exit;
fi
Running this on Ubuntu won't output any errors, but running it on SuSE will give me this error:
invalid development root directory: $DEVDIR
(In place of $DEVDIR, it's showing the actual path to the directory)
So the terminal sees the environment variable (confirmed this with the "env" command), but it doesn't think the variable describes a valid directory. I cd to that directory, copying the contents of $DEVDIR and it works perfectly fine. I even cd'd to / and followed the path all the way to $DEVDIR. There were alternate paths to that directory using links, but I made sure to use the real path.
Stranger still, I had the same problem when trying to run it from the terminal in Apple OSX 10.5 (PowerPC). I figure I'm missing some sort of configuration. Does anyone know what it is?