Line 1 in /sw/bin/fink should say

#!/usr/bin/perl -w

unless you changed it to "#!/usr/local/bin/perl -w" ?

I believe you get the command not found error, not because fink isn't found, but rather that
/usr/bin/perl isn't found. If I'm interpreting your message correctly, you removed it.

Try this:
cat > some_test
#!/nonsense/perl -w
print "hello";
<Control-D>
chmod +x some_test
./some_test

You'll get the same (misleading) error message.

The thing to do:
1. If you want to retain the integrity of fink, you *must* install perl 5.8 to overwrite the existing
installation in /usr/bin.

or
2. If you want to retain the integrity of your existing perl 5.6 in /usr/bin, you would have to change
line 1 in /sw/bin/fink to "#!/usr/local/bin/perl -w". That might be too simplistic and ultimately a
mistake. Perhaps re-install the fink package to use /usr/local/bin/perl. Someone else needs to say
whether that is viable.

I understand it's risky to overwrite the Mac OS X installation of perl (or anything else), not something
to be taken lightly. But I'll tell you my experience so far (since getting it right) : I chose #1, *after*
backing up the current installation. In fact, I ran the 5.8 installation several times, e.g., adding support
for db3, and fink has been running flawlessly.

Ken

On Monday, November 4, 2002, at 10:59 AM, Jim wrote:

Well, i followed the directions for installing perl 5.8.0 and perl seems to be installed correctly. However, fink doesn't want to work now!

After installing perl, I tried followed some instructions for removing the old Storable.pm, so a new one could be rebuilt, with these commands and got an error:

[thors-hammer] soob% sudo mv /sw/lib/perl5/darwin/Storable.pm /tmp
[thors-hammer] soob% sudo mv /sw/lib/perl5/darwin/auto/Storable /tmp
[thors-hammer] soob% sudo fink rebuild storable-pm
sudo: unable to exec /sw/bin/fink: No such file or directory

fink is there in /sw/bin and other commands stored there work fine. I had to remove perl from /usr/bin so it'd find perl in /usr/local/bin so I tried a rehash and a complete reboot, still cannot get fink to execute.

Wierd thing is just typing 'fink rebuild storable.pm' produces:
zsh: command not found: fink

and '/sw/bin/fink rebuild storable-pm' produces:
zsh: no such file or directory: /sw/bin/fink

If I cp perl5.6.0 to /usr/bin/perl, fink is again recognized as a valid file but I get the expected undefined symbols errors. Remove that perl again and rehash and fink isn't found.

Do I need to rebuild fink? If so, how? Any helpful ideas? I tried searching the archive, but didn't find anything that addressed this issue.

TIA, Jim

On Sunday, November 3, 2002, at 12:32 AM, Ben Hines wrote:

On Sunday, November 3, 2002, at 12:18  AM, Ken Engel wrote:

Is it Ok to run fink with perl 5.8 or is this not recommended? I installed it - 5.8.0 to be precise -
exactly as prescribed here - http://developer.apple.com/internet/macosx/perl.html
Now I get this awful thing-
See where it talks about fink on that page.

-Ben




-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to