First time here? Check out the FAQ!

Ask Your Question
0

[solved] no way to install zeromq under sage 5.8

asked 11 years ago

undy gravatar image

updated 11 years ago

Hi there,

I have been trying for days to install zeromq under fresh installations of Sage 5.8 on two different machines, one with Ubuntu 12.04.2 (32-bit), and the other with Ubuntu 12.10 (64-bit). I tried to install zeromq by means of:

./sage -i zeromq

as well as installing "sagemath-optional" from the repository. In all cases, the installation fails apparently because of this:


.....

checking alloca.h usability... no

checking alloca.h presence... yes

configure: WARNING: alloca.h: present but cannot be compiled

configure: WARNING: alloca.h: check for missing prerequisite headers?

configure: WARNING: alloca.h: see the Autoconf documentation

configure: WARNING: alloca.h: section "Present But Cannot Be Compiled"

configure: WARNING: alloca.h: proceeding with the compiler's result

......


(The full log is here.)

What's wrong? Can anybody help me?

Thanks, Andrea

PS. On one of the two machines, I also compiled gcc 4.7.2 (sage -f gcc) but it did not help at all.

Preview: (hide)

Comments

I can confirm it *does* install properly on OS X 10.7 and on sage.math (which is Ubuntu 8.04 Hardy Heron) so at least it's not broken everywhere. Can you install other optional packages?

kcrisman gravatar imagekcrisman ( 11 years ago )

I don't know whether this may help, could you install the following packages: - `build-essential` - `binutils` - `uuid-dev` - `libtool` - `autoconf` - `automake` and try again ?

tmonteil gravatar imagetmonteil ( 11 years ago )

2 Answers

Sort by » oldest newest most voted
1

answered 11 years ago

undy gravatar image

updated 11 years ago

Thanks for the replies!

Actually, the above-mentioned packages were all installed... but I finally made it!

Here is the procedure I used, in case anyone else had the same problem:

1) I just manually entered the directory:

cd /usr/lib/sagemath/spkg/build/zeromq-2.2.0.p0

2) I started the sage shell:

sage -sh

3) I manually installed the package:

sudo ./spkg-install

In this way, everything goes smoothly. Of course, I still don't know why the automatic installation fails (also the installation of "sage-optional" from the repository fails!), but at least I did it.

Thanks, Andrea

Preview: (hide)
link

Comments

It would really be worth someone tracking this down. Very odd, as your steps 1,2,3 should be exactly what Sage does, in essence.

kcrisman gravatar imagekcrisman ( 11 years ago )

Same ubuntu, same sage version, same problem, same solution. Thanks for sharing!

Christian Stump gravatar imageChristian Stump ( 11 years ago )
1

I would actually still like to see this problem solved since I installing this package is part of the sagecell package installation (and I cannot use the detour described above in that case).

Christian Stump gravatar imageChristian Stump ( 11 years ago )

Christian: well, if you aren't afraid to modify the sagecell package, you can open it up and comment out the line that installs zeromq in the spkg-install file. Then it will assume that you have zeromq already installed.

Jason Grout gravatar imageJason Grout ( 11 years ago )
0

answered 11 years ago

Volker Braun gravatar image

updated 11 years ago

I made a new spkg for the current zeromq, our spkg has been a bit outdated. Presumably this will fix your bug. Can you try and post your results to Trac ticket #14518

Upon closer look at your output, how did you install Sage in /usr/lib? Is that the Ubuntu PPA? Of course running install_package as a user does not have the necessary permissions to install anything into root-owned directories.

Preview: (hide)
link

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 11 years ago

Seen: 665 times

Last updated: May 02 '13