Re: Changing the perl used by fink
Hanspeter Niederstrasser <[email protected]> Sun, 22 Sep 2024 05:53:35 -0500
| Newsgroups | gmane.os.apple.fink.general |
|---|---|
| Organization | Snaggled Works |
| Message-ID | <[email protected]> |
On 9/21/24 5:43 PM, wren romano wrote: > On Fri, Sep 20, 2024 at 3:04 AM Hanspeter Niederstrasser < > [email protected]> wrote: > >> Fink uses the Apple provided perl in /usr/bin/perl, so moving the >> installation over would in theory use the new one with out any problems. >> > > Whenever I run fink commands it says "arch: /usr/bin/perl5.18 isn't > executable" (indeed, `/usr/bin/perl5.18` does not exist on the new system); > though everything works just fine on the old system. It's been so long > since I've switched computers, I forget if I did anything special to get it > to use `/usr/bin/perl5.18` in lieu of `/usr/bin/perl`. (I have a vague > recollection of doing so, to avoid certain incompatibility issues; but it's > extremely vague) > > However, the change in architecture (x86_64 -> arm64) is more critical >> and like you said requires recompiling. Things might work under Rosetta, >> but I don't know if you can have older x86_64 packages running alongside >> new arm64 packages. Starting from a clean install is probably the better >> way to go. >> > > Fwiw, the old binaries do work under Rosetta (at least for basic utilities > like awk; I haven't tried anything more sophisticated). I was planning on > rebuilding everything anyways, was just hoping to keep the configs and get > a manifest of what all I installed, without going back and forth between > the two machines On the old computer, this command (one line): fink list -ti | grep -v system- | grep -v virtual- | cut -f 2 | xargs echo should get you a decent list of all the installed packages on the old system. For trying to run old fink on new-system, edit the file /opt/sw/bin/fink at the top to change "/usr/bin/perl5.18" to whatever the perl version is on your system (I think /usr/bin/perl5.30). Then see if that lets you run. If it does, I recommend `fink rebuild fink` followed by `fink reinstall fink` if successful. If you do need to start fully from scratch, you can move your old install on new-system to /opt/sw-original to save all your config files, then install fink anew in /opt/sw, and copy data files as needed. Hanspeter -- Hanlon's Razor Never attribute to malice that which can be adequately explained by stupidity. _______________________________________________ Fink-users mailing list [email protected] List archive: https://sourceforge.net/p/fink/mailman/fink-users/ Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users