Ah thanks Jerry and Remi - it all makes sense now!

Cheers, David.

On Sunday, November 9, 2003, at 12:33 PM, Remi Mommsen wrote:

Hi David,

No surprise, if you move perl to a different location than it's default. A perl script like any shell script specifies at the beginning of the script with which program it has to be treated. If you do

$ head /sw/bin/fink
#!/usr/bin/perl -w

you see that fink is looking for /usr/bin/perl. Thus the 'command not found'. (The error messages in this case are misleading). Anyhow, you can either move your manually installed perl to /usr/bin or provide a softlink from there to your perl.

HTH,
        Remi

On Saturday, November 8, 2003, at 03:15 PM, David Orlovich wrote:

Hi fink users.

Somehow I've managed to stop fink from working. I've been playing around a bit today so I'll outline what the problem is, and how I managed to get to it:

First, now if I issue a fink command, it isn't recognised:

[fungus:~] davidorlovich% fink selfupdate
fink: Command not found.

So, if I see if /sw/bin is in my path, apparently it is:

[fungus:~] davidorlovich% printenv PATH
/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/mysql/bin:/ usr/local/bin:/usr/X11R6/bin


and if I check if fink is actually there, it is:
[fungus:~] davidorlovich% ls -lsa /sw/bin/fink
16 -rwxr-xr-x  1 root  admin  4986 Oct 25 18:26 /sw/bin/fink

Also, if I run a fink-installed program (e.g.: xgalaga), it works fine.

So, what did I do to get to this? Well, today I installed (by hand) a new perl (5.8.2). Instead of installing it in /usr/bin (which is where 5.8.1 was installed), I installed it in /usr/local/bin. I didn't really mean to do it this way ... but I did. Anyway, after upgrading perl, I did 'perl -v' and it still showed perl-5.8.1, which is when I realised I was putting it in a different place. Then what I did was deleted perl from /usr/bin, and then perl -v showed the newest version:

[fungus:~] davidorlovich% perl -v

This is perl, v5.8.2 built for darwin
<etc etc>

and now my perl is

[fungus:~] davidorlovich% which perl
/usr/local/bin/perl

Next time I tried to run fink, I got the 'command not found', whereas it worked fine before I played around with perl. I really don't see how these are connected anyway but somehow there is a problem and I can't figure it out!

Anyway suggestions much appreciated!

cheers, David.


Dr David Allan Orlovich Department of Botany, University of Otago, P.O. Box 56, Dunedin, New Zealand.

Email: [EMAIL PROTECTED]
Department of Botany: http://www.botany.otago.ac.nz/
Botanical Society of Otago: http://www.botany.otago.ac.nz/bso/



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users




---------------------------------------------------------------------
Intelligence is like a four-wheel drive vehicle: it allows you to get
stuck in much more remote places.

*********************************************************************
Remigius K. Mommsen                 e-mail: [EMAIL PROTECTED]
University of California, Irvine       URL:    http://cern.ch/mommsen
c/o SLAC                             voice:        ++1 (650) 926-3595
2575 Sand Hill Road #35                fax:        ++1 (650) 926-3882
Menlo Park, CA 94025, US              home:        ++1 (650) 233-9041
*********************************************************************


Dr David Allan Orlovich
Department of Botany,
University of Otago,
P.O. Box 56,
Dunedin,
New Zealand.

Email: [EMAIL PROTECTED]
Department of Botany: http://www.botany.otago.ac.nz/
Botanical Society of Otago: http://www.botany.otago.ac.nz/bso/



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to