Ask Your Question
1

Error building python 2 with sage

asked 2019-05-27 23:53:04 +0100

anonymous user

Anonymous

updated 2019-05-27 23:53:51 +0100

When I run the command sage -f python2 the error:

[python2-2.7.15.p0] Copying package files from temporary location /Applications/SageMath-8.7.app/Contents/Resources/sage/local/var/tmp/sage/build/python2-2.7.15.p0/inst to /Applications/SageMath-8.7.app/Contents/Resources/sage/local
[python2-2.7.15.p0] cp: symlink: python-2.7.pc: File exists
[python2-2.7.15.p0] cp: symlink: python2.pc: File exists
[python2-2.7.15.p0] ************************************************************************
[python2-2.7.15.p0] Error copying files for python2-2.7.15.p0.
[python2-2.7.15.p0] ************************************************************************
[python2-2.7.15.p0] Please email sage-devel 
[python2-2.7.15.p0] explaining the problem and including the log file
[python2-2.7.15.p0]   /Applications/SageMath-8.7.app/Contents/Resources/sage/logs/pkgs/python2-2.7.15.p0.log
[python2-2.7.15.p0] Describe your computer, operating system, etc.
[python2-2.7.15.p0] ************************************************************************
make[1]: *** [/Applications/SageMath-8.7.app/Contents/Resources/sage/local/var/lib/sage/installed/python2-2.7.15.p0] Error 1

real    2m38.586s
user    1m47.897s
sys 0m39.865s
***************************************************************
Error building Sage.

The following package(s) may have failed to build (not necessarily during this run of 'make python2'):

* package: python2-2.7.15.p0
log file: /Applications/SageMath-8.7.app/Contents/Resources/sage/logs/pkgs/python2-2.7.15.p0.log
  build directory: /Applications/SageMath-8.7.app/Contents/Resources/sage/local/var/tmp/sage/build/python2-2.7.15.p0

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

make: *** [python2] Error 1

It looks like there is an error with a symlink - cp: symlink: python-2.7.pc: File exists

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-05-28 04:29:54 +0100

This should have been fixed by https://trac.sagemath.org/ticket/27544, which will be part of Sage 8.8 when it is released. In the mean time, delete the files SAGE_ROOT/local/lib/pkgconfig/python2.pc and SAGE_ROOT/local/lib/pkgconfig/python-2.7.pc, and then run makeagain. Or if you want, you can download the latest beta from http://www.sagemath.org/download-late... and try that.

edit flag offensive delete link more

Comments

Thank you. Deleting the python* files in /Applications/SageMath-8.7.app/Contents/Resources/sage/local/lib/pkgconfig and rebuilding python worked!

davidcorbin gravatar imagedavidcorbin ( 2019-05-28 22:53:37 +0100 )edit

@davidcorbin -- please accept the answer by clicking the "tick" icon at the top left of the answer (just below the "upvote" button, "current number of votes" display, and "downvote" button). This will mark the answer as accepted, and the question will be marked as answered in the list of questions on the main Ask Sage page and on the results page for any search query that is matched by this question.

slelievre gravatar imageslelievre ( 2019-06-01 16:34:49 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-05-27 23:53:04 +0100

Seen: 343 times

Last updated: May 28 '19