In your script you show a substitute sw32 to sw64. I have 64bit fink in /sw/bin?
You said earlier you cant rename /sw to /sw64. so I am confused with what your 
script is doing?

Richard Miles
r.godzi...@comcast.net



On Apr 18, 2011, at 11:51 AM, Alexander Hansen wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 4/18/11 2:38 PM, Richard Miles wrote:
>> When I do the following I get:
>> 
>> -bash3.2 rmiles $fink list all
>> Can't load 
>> '/sw/lib/perl5/5.10.0/darwin-thread-multi-2level/auto/IO/IO.bundle' for 
>> module IO: 
>> dlopen(/sw/lib/perl5/5.10.0/darwin-thread-multi-2level/auto/IO/IO.bundle, 
>> 1): no suitable image found.  Did find:
>>      /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/auto/IO/IO.bundle: 
>> mach-o, but wrong architecture at 
>> /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/XSLoader.pm line 73.
>> at /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/IO.pm line 11
>> Compilation failed in require at 
>> /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/IO/Handle.pm line 266.
>> BEGIN failed--compilation aborted at 
>> /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/IO/Handle.pm line 266.
>> Compilation failed in require at 
>> /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/IO/Seekable.pm line 101.
>> BEGIN failed--compilation aborted at 
>> /sw/lib/perl5/5.10.0/darwin-thread-multi-2level/IO/Seekable.pm line 101.
>> Compilation failed in require at /sw/lib/perl5/5.10.0/File/Temp.pm line 147.
>> BEGIN failed--compilation aborted at /sw/lib/perl5/5.10.0/File/Temp.pm line 
>> 147.
>> Compilation failed in require at /sw32/lib/perl5/Fink/CLI.pm line 27.
>> BEGIN failed--compilation aborted at /sw32/lib/perl5/Fink/CLI.pm line 27.
>> Compilation failed in require at /sw32/lib/perl5/Fink/Services.pm line 29.
>> BEGIN failed--compilation aborted at /sw32/lib/perl5/Fink/Services.pm line 
>> 29.
>> Compilation failed in require at /sw32/lib/perl5/Fink/Config.pm line 27.
>> BEGIN failed--compilation aborted at /sw32/lib/perl5/Fink/Config.pm line 27.
>> Compilation failed in require at /sw32/lib/perl5/Fink.pm line 79.
>> BEGIN failed--compilation aborted at /sw32/bin/fink line 29.
>> Richard Miles
>> r.godzi...@comcast.net
>> 
>> 
>> any suggestions?
>> 
> 
> Yes.  What's going on is just exactly what I said was a problem in my
> prior post in this thread.  If you have a 32-bit Fink going, and you
> then use the init.sh for a 64-bit one, you will get this error (if you
> start with a 64-bit Fink and then use the init.sh for a 32-bit Fink, at
> least that lets you use the fink command).
> 
> I have a shell script to switch between my 32-bit and 64-bit setups:
> 
> #!/bin/sh
> if (grep -l sw32 $HOME/.profile) ; then
>        sed -i -e 's|sw32|sw64|g' $HOME/.profile
>        printf "Switching to 64-bit Fink\nMake sure to start a new shell
> to use it.\n"
> else
>        sed -i -e 's|sw64|sw32|g' $HOME/.profile
>        printf "Switching to 32-bit Fink\nMake sure to start a new shell
> to use it.\n"
> fi
> exit
> 
> I recommend _not_ using both the 32-bit and the 64-bit setups in the
> same shell session.
> - -- 
> Alexander Hansen, Ph.D.
> Fink User Liaison
> http://finkakh.wordpress.com/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAk2siCUACgkQB8UpO3rKjQ+WMgCdGCssUlPLPgbI8xx3drwp1iJT
> eyYAn3NrAf/XZvzHLRWcWQ2u1lMwmdHP
> =lWHE
> -----END PGP SIGNATURE-----


------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to