> On May 15, 2015, at 3:35 PM, mysiar wrote:
> 
>> On 15 May 2015, at 22:10, mysiar wrote:
>> 
>>> On 15 May 2015, at 20:50, Ryan Schmidt wrote:
>>> 
>>> On May 15, 2015, at 06:11, mysiar wrote:
>>>> 
>>>> I have a piece of software that requires tcl, tcl and tk at the same 
>>>> version.
>>>> I tried with latest tcl & tk from macports but it is not working.
>>> 
>>> What piece of software? How is it not working?
>> tksu
>> 
>>> 
>>>> I managed to compile tcl from source code no problem but tk fails with the 
>>>> error message
>>>> 
>>>> d: library not found for -lX11
>>>> clang: error: linker command failed with exit code 1 (use -v to see 
>>>> invocation)
>>>> Makefile:406: recipe for target 'libtk8.4.dylib' failed
>>>> gmake: *** [libtk8.4.dylib] Error 1
>>>> 
>>>> configure for tk
>>>>    ./configure --prefix=/Users/usr --with-x --x-includes=/opt/X11/include 
>>>> --x-libraries=/opt/X11/lib
>>> 
>>> Does libX11.dylib exist in /opt/X11/lib? The error message suggests it does 
>>> not. 
>>> 
>>> "--prefix=/Users/usr" is also unusual. Do you really have an OS X user 
>>> account named "usr"? Is that the user you're logged in with now? If not, 
>>> does the user you're logged in with have permission to modify user usr's 
>>> home directory? Or are you just creating a directory /Users/usr to use as a 
>>> prefix for software installation, without having a corresponding "usr" 
>>> user? If so, that's also unusual.
>> 
>> my mistake the prefix path for install is /Users/piotr/usr
>> and piotr is my user
> 
> forgot to mention that libX11.dylib exists
> /opt/X11/lib/libX11.dylib -> libX11.6.dylib
> 

Hmm, then maybe tksu does not actually use the value of the --x-libraries 
configure argument correctly. You could try adding "-L/opt/X11/lib" to LDFLAGS 
when you configure and/or build.

_______________________________________________
macports-users mailing list
[email protected]
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to