old ports install problem

Ryan Schmidt ryandesign at macports.org
Fri May 15 14:11:45 PDT 2015


> On May 15, 2015, at 3:44 PM, mysiar wrote:
> 
>> On 15 May 2015, at 22:36, Ryan Schmidt wrote:
>> 
>> 
>>> 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.
> tksu is a package of tcl scripts that uses tclx and tk
> the problem I have is to compile tk 8.4.1, I managed to compile tcl 8.4.1, I have tclx 8.4.1 from macports
> when I run tksu it checks if packages are not at the same version if fails.

Sorry, I meant tk, not tksu.

Have you tried removing that check from tksu? Maybe there is no reason why the versions of tcl and tk need to be the same as the version of tclx. I note that tclx 8.4.1 was released in 2012; it seems odd that they would release in 2012 a version of tclx only compatible with a versions of tcl and tk released in 2002.

Please remember to Reply All so that the conversation stays on the mailing list.



More information about the macports-users mailing list