install problem on Mac OSX 10.7.5

343 views
Skip to first unread message

Oskar Till

unread,
Aug 26, 2013, 6:54:55 AM8/26/13
to sage-s...@googlegroups.com
Hello,

I'm new to Sage and I'm trying to do some calculations in toric geometry. My binary version struggled, and some of the combinatorial geometry functions didn't work. I was advised to build sage from source, which now gave me more problems. I'm running Mac OS_X 10.7.5 (with latest XCode installed) and I'm trying to make Sage 5.9. When typing make, after extracting the tar file in the /Applications directory I get the following message:


Found MacPorts in /opt/local/bin/port

*********************************************************

Found either MacPorts or Fink in your PATH, which potentially wrecks the Sage build process.
You should make sure MacPorts and Fink cannot be found. Either:
(1) rename /opt/local and /sw, or
(2) change PATH and DYLD_LIBRARY_PATH
(Once Sage is built, you can restore them.)

*********************************************************

make[2]: *** [/Applications/sage-5.9/spkg/installed/prereq-1.2] Error 1
make[1]: *** [all] Error 2

real 0m4.529s
user 0m1.244s
sys 0m1.577s
***************************************************************
Error building Sage.

The following package(s) may have failed to build:

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: *** [build] Error 1

I'm not very good in using the terminal, so please explain in basic terms why this happens, and how it may be solved.

Thank you very much in advance. //Oskar

Dima Pasechnik

unread,
Aug 26, 2013, 10:45:52 PM8/26/13
to sage-s...@googlegroups.com
Sage building process needs native OSX tools rather than the ones
provided by Fink or MacPorts.
So you can do
(1) rename /opt/local and /sw

With terminal, you can do this as follows:

cd /
mv /sw /sw_gone
mv /opt/local /opt/local_gone

It could be you need to do "sudo mv ..." rather than just "mv...".

(actually, this can be done with Finder too, if you know a magic
shortcut to bring you to /...)


After Sage is built you can rename them back...
(e.g. "mv /sw_gone /sw")

Oskar Till

unread,
Aug 27, 2013, 3:48:38 AM8/27/13
to sage-s...@googlegroups.com
Thank you very much Dima, 

I solved it by throwing out macports instead. Now it works. 

/Oskar

Leonardo Luiz e Castro

unread,
Jul 11, 2017, 10:28:33 AM7/11/17
to sage-support

cd /
mv /sw /sw_gone
mv /opt/local /opt/local_gone

After renaming those folders, I'm not able to run the "make" command:

 -bash: /sw/bin/make: No such file or directory

What can I do?

Dima Pasechnik

unread,
Jul 11, 2017, 2:49:18 PM7/11/17
to sage-support
your PATH still points to  /sw/bin/
(You can type in the terminal

echo $PATH

to see its value.)
You have to remove this part from it.


Reply all
Reply to author
Forward
0 new messages