- Thank you very much indeed for your quick answer and valuable help !
- Just one last question relating to reinstalling Fink:
Obviously, I will have to reinstall all the packages I have already
installed.
I would like to try to do that automatically.
Under Linux, I would use dpkg (with the relevant options) in order to first
make a list of the installed packages and then
at a later stage do the reverse operation, i.e. reinstall the packages from
the list.
Is there a way to do the same with Fink ?
(extract a list of the installed packages in a format which could be fed
back to Fink later in order to reinstall said packages).
Thank you for your help !
It is very much appreciated.
Serge Hulne.
On Thu, Jun 24, 2010 at 1:03 PM, Hanspeter Niederstrasser <
[email protected]> wrote:
> On 06/24/2010 2:53 AM, Serge Hulne wrote:
> > Hi,
> >
> > I tried to use Fink to install gtk+2 under Mac OS X 10.6 (with a 64 bits
> > dual core pentium processor).
> >
> > It installed something wihtout complaning.
> >
> > However, when I tried to compile a graphical "hello world", coded with
> gtk+,
> > I received an error message stating that the installed libraries had
> been
> > compiled for another architecture, namely a 386 architectre.
> >
> > This astonished me, because all the other packages I have intalled with
> Fink
> > under Snow Leopard seem to work just fine.
>
> Fink can be installed as either i386 or x86_64 on OS X 10.6. A
> particular Fink install can only be for a single architecture, but
> multiple (fully independent that in theory never talk to each other)
> installations are possible if you install fink from its source tarball
> (say in /sw and /sw64). So when you installed Fink, you must have told
> it to do 32bit. You can verify this with the command "fink -V | head -n
> 2". Fink is internally consistent, so of course, packages installed by
> it are all of the same architecture (i386 programs run just fine on a
> 64bit CPU).
>
> On Snow Leopard, the compiler defaults to 64bit binaries, so if you give
> it 32bit libraries, it will throw an error. If you wish to compile
> stuff using Fink provided libraries, you have 2 options:
>
> 1) Compile all your external stuff as 32 bit to match the Fink provided
> binaries (sytem libraries are all multi-architecture). To avoid the
> wrong architecture error, add "-arch i386" to your compiler commands.
>
> 2) Install Fink with the 64bit option (either by erasing your existing
> 32bit install or by installing 64bit Fink in a separate location [/sw64
> is a common option]). The 32/64 bit option is chosen during the
> bootstrap phase of installation. Then point your compiler to the 64bit
> Fink libraries instead of the 32bit libraries.
>
> Hanspeter
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit. See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Fink-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fink-users
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users