On Sep 7, 2009, at 5:23 AM, Martin Costabel wrote: > > Somehow one needs to place that path-prefix back in front of the PATH, > but since this is distribution and architecture dependent, to do so > can > become quite a mess.
Hi Martin: I am working on pdb2pqr, an apbs dependency that uses gfortran, gcc, and g++ It is currently broken on 23-bit 10.6 but works fine on the other platforms. If the first three lines are #!/bin/zsh -f source %p/bin/init.sh PATH=%p/bin:%p/sbin:${PATH} ; export PATH this appears to put everything right, at least in my experiment. Because of zsh's path anti-metastasis feature, I HAD to do this explicitly with the path, e.g., this set +x print "" print "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" print "" print "source %p/bin/init.sh" source %p/bin/init.sh print "The path after sourcing the %p/bin/init.sh file" print "starts with $path[1,6]" print "" PATH=%p/bin:%p/sbin:${PATH} ; export PATH print "now path starts with $path[1,6]" print "VERSIONER_PERL_PREFER_32_BIT is $VERSIONER_PERL_PREFER_32_BIT" print "" print "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" print "" sleep 10 set -x gives the following output: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ source /sw/bin/init.sh The path after sourcing the /sw/bin/init.sh file starts with /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/X11/bin now path starts with /sw/bin /sw/sbin /usr/bin /bin /usr/sbin /sbin VERSIONER_PERL_PREFER_32_BIT is yes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This, however, wasn't enough to get gfortran to do the right thing > > On a related note: How does one tell gfortran (from Fink's gcc44) to > build either 32bit or 64bit executables? so I am left having to do a hackish conditional test [[ "%m" != "x86_64" ]] and manually introducing -m32 where appropriate. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel