First time here? Check out the FAQ!

Ask Your Question
0

Compilation problem from GIT

asked 9 years ago

Dox gravatar image

updated 9 years ago

Hello! I've been trying for a while to install sagemath from the git repo, but it continues to fail.

I'm doing the following:

$ mkdir Software
$ cd Software git clone
$ git://github.com/sagemath/sage.git
$ cd sage
$ export MAKE="make -j6"
$ make

Everything seems OK, but at some point (for details see the log file)

***************************************************************
Error building Sage.

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

package: flintqs-20070817.p8
log file: /home/oscar/Software/sage/sage/logs/pkgs/flintqs-20070817.p8.log
build directory: /home/oscar/Software/sage/sage/local/var/tmp/sage/build/flintqs-20070817.p8

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.

Makefile:19: recipe for target 'build' failed
make: *** [build] Error 1

Can anyone what is the problem?

By the way I'm running Debian (testing) on a Samsung laptop with i7 processor.

Preview: (hide)

Comments

We'll need to see the log file listed there in order to tell. You could post it online somewhere but for now it's pretty hard to tell from this minimal listing.

kcrisman gravatar imagekcrisman ( 9 years ago )

@kcrisman Thank you for the response, I've updated the post with a link to the install.log file. Cheers.

Dox gravatar imageDox ( 9 years ago )

Sorry, I meant specifically /home/oscar/Software/sage/sage/logs/pkgs/flintqs-20070817.p8.log because your build was in parallel so it would be a little annoying to find exactly what happened in the full install log.

kcrisman gravatar imagekcrisman ( 9 years ago )

@kcrisman Oh, I'm sorry... didn't know! I've updated the link to the expected file. Thank you!

Dox gravatar imageDox ( 9 years ago )

2 Answers

Sort by » oldest newest most voted
1

answered 9 years ago

tmonteil gravatar image

updated 9 years ago

I guess that you have exported the bash variable CP to /home/oscar/Documents/LatexFiles/UTFSM/Papers, that Sage understands that you are setting an alternative to the cp command. Hence, you should type unset CP before compiling Sage (in the same shell, this is only a local effect).

Preview: (hide)
link

Comments

@tmonteil I'm trying your suggestion right now! I'll share the result later. Thank you.

Dox gravatar imageDox ( 9 years ago )

@tmonteil Yes, that was the problem. I compile the source without further problems and I got the 6.7 version of sagemath. Than you so much.

Dox gravatar imageDox ( 9 years ago )
2

answered 9 years ago

mrblasto gravatar image

Although this question has been answered and it helped the original questioner, I also had a problem compiling GIT which aborted building Sage. After searching and finding only pieces of Git and Mac compilation problems I was able to get the build to work by exporting NO_APPLE_COMMON_CRYPTO=1 in the command shell and by issuing make NO_CURL=1 instead of just make. Note that exporting NO_CURL=1 didn't work. My machine is an early 2008 Macbook Pro running OSX 7.5. Hopefully this will save someone else a few hours of frustration.

Preview: (hide)
link

Comments

Nice! See e.g. http://stackoverflow.com/questions/63... - I wonder why this isn't ordinarily a problem?

kcrisman gravatar imagekcrisman ( 9 years ago )

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: 9 years ago

Seen: 839 times

Last updated: May 20 '15