Alexander Hansen <alexanderk.han...@gmail.com> said:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2/11/10 12:30 PM, Einat Lev wrote:
>> Dear all -- 
>> 
>> I have a 2 month old dual-core Snow Leopard Macbook Pro. 
>
> The age and model of the machine rarely matters.
>
> I am trying to
>> build the finite element package Elmer, which uses Tcl/Tk. So I tried
>> getting the Tcl/Tk libraries through fink, and I get the following error:
>> 
>> 
>> ....
>> creating tkConfig.sh
>> make genstubs
>> /usr/bin/tclsh8.5
>> /sw/src/fink.build/tcltk-8.4.19-2/tcl8.4.19/tools/genStubs.tcl
>> /sw/src/fink.build/tcltk-8.4.19-2/tk8.4.19/unix/../generic \
>> /sw/src/fink.build/tcltk-8.4.19-2/tk8.4.19/unix/../generic/tk.decls
>> /sw/src/fink.build/tcltk-8.4.19-2/tk8.4.19/unix/../generic/tkInt.decls
>> dyld: Library not loaded:
>> /System/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl
>>   Referenced from: /usr/bin/tclsh8.5
>>   Reason: no suitable image found.  Did find:
>> /System/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl: mach-o, but
>> wrong architecture
>> /Library/Frameworks/Tcl.framework/Versions/8.5/Tcl: no matching
>> architecture in universal wrapper
>> /System/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl: mach-o, but
>> wrong architecture
>> make: *** [genstubs] Trace/BPT trap
>> ### execution of /var/tmp/tmp.1.3CYAJV failed, exit code 2
>> Removing runtime build-lock...
>> Removing build-lock package...
>> /sw/bin/dpkg-lockwait -r fink-buildlock-tcltk-8.4.19-2
>> (Reading database ... 5571 files and directories currently installed.)
>> Removing fink-buildlock-tcltk-8.4.19-2 ...
>> Failed: phase compiling: tcltk-8.4.19-2 failed
>> 
>> 
>> When checking the architecture
>> of /System/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl I get:
>> 
>> ~/work/projects/Elmer>>file
>> /System/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl
>> /System/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl: Mach-O
>> dynamically linked shared library i386
>> 
>> 
>> Any suggestions? is there a way to avoid installing tcl/tk through fink? 
>> 
>> thanks!
>> Einat
>> 
>> 
>
> You're not installing a Fink package, since we don't have elmer (as of
> yet), so you're free to use whatever provider of Tcl/Tk you want.
>
> Your system has Tcl/Tk on it already, as you can see.  The reason Fink
> provides the package is because Apple's doesn't include X11 support.  If
> elmer doesn't require X11, then perhaps you can make it use the system's
> tcltk.
>
> As for the "wrong architecture" issue:  I think that's localized to your
> system, and only indirectly a Fink issue, since the complaint is coming
> from /usr/bin/tclsh8.5, and it seems to bee looking for a universal
> Tcl.framework rather than a single-architecture one.

I committed an updated tcltk to the unstable distros (tcltk-8.5.7-4 or
tcltk-8.4.19-3 depending on your system configuration) that tries to
be stricter about finding a viable tclsh in this context. However, I
don't use the exact machine type where the bug was reported, so I
don't know that my change completely solves the problem (and doesn't
cause other problems at this build stage) yet. Please test and let us
know.

dan

-- 
Daniel Macks
dma...@netspace.org
http://www.netspace.org/~dmacks



------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Fink-beginners mailing list
Fink-beginners@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to