Opened 9 years ago

Closed 9 years ago

#47428 closed defect (fixed)

Configure error installing lal

Reported by: f.jimenez@… Owned by: skymoo (Adam Mercer)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: lal

Description (last modified by mf2k (Frank Schima))

Hi all,

I'm getting this error when I try to install the lalapps app. via port. I've already installed python version 2.7, but something is wrong with python2.7 binary file that is saved in this path:

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 (my /opt/local/bin/python2.7 points to this file)

I'm pretty sure that I somehow broke the python2.7 installation but I do not know now how to recover it. This is the error that appears in main.log. I have also attached this file.

:info:configure checking whether /opt/local/bin/python2.7 version is >= 2.6... no :info:configure configure: error: Python interpreter is too old.

Thanks a lot Xisco

Attachments (2)

config.log (18.4 KB) - added by f.jimenez@… 9 years ago.
config file
main.log (9.7 KB) - added by f.jimenez@… 9 years ago.
main file

Download all attachments as: .zip

Change History (12)

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to ram@…
Port: lal added
Summary: port install lalappsConfigure error installing lal

comment:2 Changed 9 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting, fill in the Port field with the port that fails to build and Cc the port maintainers (port info --maintainers lal), if any.

This is not a clean build log. Please clean the port and try again. Then attach the new main.log file.

comment:3 Changed 9 years ago by skymoo (Adam Mercer)

The config.log would also be useful to see why it thinks python2.7 is too old.

comment:4 Changed 9 years ago by skymoo (Adam Mercer)

Status: newassigned

Changed 9 years ago by f.jimenez@…

Attachment: config.log added

config file

Changed 9 years ago by f.jimenez@…

Attachment: main.log added

main file

comment:5 Changed 9 years ago by f.jimenez@…

Hi, sorry for not posting correctly the error! I've already uploaded main.log and config.log files Now that I've checked the config file I see that the library ac_nonexistent.h is missing.

On the other hand and in the case this helps you, this is what my output shows when executing the python binary:

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 python2.7: posix_spawn: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.72.7: No such file or directory

Notice that, strangely, when I call python2.7, my bash is trying to find some weird and non-existent binary called python2.72.7 being python2.7 not linked to any other file.

Feel free to ask me more questions!

Thanks in advance Xisco

comment:6 in reply to:  5 Changed 9 years ago by skymoo (Adam Mercer)

Replying to f.jimenez@…:

Now that I've checked the config file I see that the library ac_nonexistent.h is missing.

That is expected, and the correct behaviour.

On the other hand and in the case this helps you, this is what my output shows when executing the python binary:

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 python2.7: posix_spawn: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.72.7: No such file or directory

Notice that, strangely, when I call python2.7, my bash is trying to find some weird and non-existent binary called python2.72.7 being python2.7 not linked to any other file.

That is very weird. Not sure why it's referring to python2.72.7. On my system /opt/local/bin/python2.7 is a symlink to the python interpreter in the Python.framework, is yours the same?

[ram@hastur ~]$ ls -l /opt/local/bin/python2.7
lrwxr-xr-x 1 root admin 73 Dec 11 16:03 /opt/local/bin/python2.7 -> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
[ram@hastur ~]$

comment:7 Changed 9 years ago by f.jimenez@…

Hi,

Yes, it shows me exactly the same:

ls -l /opt/local/bin/python2.7

lrwxr-xr-x 1 root admin 73 Dec 14 00:15 /opt/local/bin/python2.7 -> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

What I remember I did (I think after breaking the link) was to copy the binary file /opt/local/bin/python2.7 to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 I do not know the reason but seems that this file is corrupted. Do you have a clue how to reinstall it?

comment:8 in reply to:  7 ; Changed 9 years ago by skymoo (Adam Mercer)

Replying to f.jimenez@…:

What I remember I did (I think after breaking the link) was to copy the binary file /opt/local/bin/python2.7 to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

That would have probably broken things as on my system /opt/local/bin/python2.7 is a symlink. If you deactivate the port and then reactivate it then that will hopefully get things working again. Try:

$ sudo port -f deactivate python27
$ sudo port activate python27

and if that doesn't do the trick, try:

$ sudo port -f uninstall python27
$ sudo port install python27

comment:9 in reply to:  8 Changed 9 years ago by f.jimenez@…

Hi, sorry for the delay in the answer Finally uninstalling and instralling python27 solved the problem!

$ sudo port -f uninstall python27 $ sudo port install python27

Thanks!!! Xisco

Replying to ram@…:

Replying to f.jimenez@…:

What I remember I did (I think after breaking the link) was to copy the binary file /opt/local/bin/python2.7 to /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7

That would have probably broken things as on my system /opt/local/bin/python2.7 is a symlink. If you deactivate the port and then reactivate it then that will hopefully get things working again. Try:

$ sudo port -f deactivate python27
$ sudo port activate python27

and if that doesn't do the trick, try:

$ sudo port -f uninstall python27
$ sudo port install python27

comment:10 Changed 9 years ago by skymoo (Adam Mercer)

Resolution: fixed
Status: assignedclosed

Great!

Note: See TracTickets for help on using tickets.