I forgot to mention that since I removed the second test line I only get one of these: -bash: /sw/share/xtal/ccp4-5.0.2/include/ccp4.setup-sh: No such file or directory

Robert T Wyatt wrote:
bash-3.00$ cat .bashrc
cat: .bashrc: No such file or directory
bash-3.00$ cat .profile
# the path is initially set to "/bin:/sbin:/usr/bin:/usr/sbin"
# adding /usr/local/bin for lilypond 2.6
# /usr/local/mysql/bin removed from example and macdevcenter.com
export PATH=$PATH:/usr/local/bin

# for fink

test -r /sw/bin/init.sh && . /sw/bin/init.sh

test -r /sw/bin/init.sh && . /sw/bin/init.sh
bash-3.00$

Okay, so I removed the second test -r line, didn't help.

init.sh looks normal enough to me:

bash-3.00$ cat /sw/bin/init.sh
# init.sh
#
# to use the Fink hierarchy, put the following in your .profile:
#
#  . /sw/bin/init.sh
#

#
# Fink - a package manager that downloads source and installs it
# Copyright (c) 2001 Christoph Pfisterer
# Copyright (c) 2001-2004 The Fink Team
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#

# define append_path and prepend_path to add directory paths, e.g. PATH, MANPATH.
# add to end of path
append_path()
{
if ! eval test -z "\"\${$1##*:$2:*}\"" -o -z "\"\${$1%%*:$2}\"" -o -z "\"\${$1##$2:*}\"" -o -z "\"\${$1##$2}\"" ; then
    eval "$1=\$$1:$2"
  fi
}

# add to front of path
prepend_path()
{
if ! eval test -z "\"\${$1##*:$2:*}\"" -o -z "\"\${$1%%*:$2}\"" -o -z "\"\${$1##$2:*}\"" -o -z "\"\${$1##$2}\"" ; then
    eval "$1=$2:\$$1"
  fi
}

# setup fink related paths. we assume that the fink directories exists.
if [ -z "$PATH" ]; then
  PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin
else
  prepend_path PATH /sw/bin:/sw/sbin
fi
export PATH

osMajorVer=`uname -r | cut -d. -f1`
osMinorVer=`uname -r | cut -d. -f2`
if [ -z "$MANPATH" ]; then
  if [ $osMajorVer -gt 7 ]; then
    MANPATH=`/usr/bin/manpath`
  else
    MANPATH=`/usr/bin/manpath -q`
  fi
fi
prepend_path MANPATH /sw/share/man
perlversion=`/usr/bin/perl -e 'printf("%vd\n", $^V)'`
append_path MANPATH /sw/lib/perl5/$perlversion/man
export MANPATH

if [ -z "$INFOPATH" ]; then
  INFOPATH=/sw/share/info:/sw/info:/usr/share/info
else
  prepend_path INFOPATH /sw/share/info:/sw/info
fi
export INFOPATH

if [ -r /sw/share/java/classpath ]; then
  if [ -z "$CLASSPATH" ]; then
    CLASSPATH=`cat /sw/share/java/classpath`:.
  else
    add2classpath=`cat /sw/share/java/classpath`
    prepend_path CLASSPATH $add2classpath
  fi
  export CLASSPATH
fi

if [ -z "$PERL5LIB" ]; then
  PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin
else
  prepend_path PERL5LIB /sw/lib/perl5:/sw/lib/perl5/darwin
fi
export PERL5LIB

# Add X11 paths (but only if the directories are readable)
if [ -r /usr/X11R6/bin ]; then
    append_path PATH /usr/X11R6/bin
    export PATH
fi
if [ -r /usr/X11R6/man ]; then
    append_path MANPATH /usr/X11R6/man
    export MANPATH
fi

# On Mac OS X 10.4.{x|x<3} there is a dyld bug (rdar://problem/4139432)
# where a library will not load if a library with a matching basename
# is already loaded from one of the system paths,
# the workaround is to set DYLD_FALLBACK_LIBRARY_PATH to :
if [ -z "$DYLD_FALLBACK_LIBRARY_PATH" ]; then
  if [ $osMajorVer -eq 8 -a $osMinorVer -lt 3 ]; then
    DYLD_FALLBACK_LIBRARY_PATH=:
    export DYLD_FALLBACK_LIBRARY_PATH
  fi
fi

PROXYHTTP=`grep ProxyHTTP /sw/etc/fink.conf | grep -v "#" | cut -d " " -f2`

if [ "$PROXYHTTP" != "" ]; then
  HTTP_PROXY=$PROXYHTTP
  http_proxy=$PROXYHTTP

  export HTTP_PROXY http_proxy
fi

PROXYFTP=`grep ProxyFTP /sw/etc/fink.conf | grep -v "#" | cut -d " " -f2`

if [ "$PROXYFTP" != "" ]; then
  FTP_PROXY=$PROXYFTP
  ftp_proxy=$PROXYFTP

  export FTP_PROXY ftp_proxy
fi

# read per-package scripts from /sw/etc/profile.d
if [ -d /sw/etc/profile.d ]; then
  for i in /sw/etc/profile.d/*.sh ; do
    if [ -r $i -a -x $i ]; then
      . $i
    fi
  done
  unset i
fi

# eof
bash-3.00$

... and for good measure:

bash-3.00$ ls /sw/etc/profile.d/
ant-base.csh ccp4.sh dummy.sh kdelibs3-unified.csh libgnomeui2-shlibs.sh qt3-shlibs.csh xfontpath.sh ant-base.sh ccp4lib.csh fltk-x11.csh kdelibs3-unified.sh libxml2-bin.csh qt3-shlibs.sh app-defaults.csh ccp4lib.sh fltk-x11.sh ladspa.csh libxml2-bin.sh xdg-base.csh app-defaults.sh distcc.csh gtk+2-shlibs.csh ladspa.sh pine-ssl.csh xdg-base.sh ccp4.csh distcc.sh gtk+2-shlibs.sh libgnomeui2-shlibs.csh pine-ssl.sh xfontpath.csh
bash-3.00$



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to