Sage math on CentOS 6

726 views
Skip to first unread message

Jernej

unread,
May 28, 2015, 5:41:13 AM5/28/15
to sage-s...@googlegroups.com, barb...@arnes.si
Hello!

I would like to use Sage on a large computing grid running on CentOS 6.

I've asked the administrators (CC'ed) of the grid to install Sage on the grid system and they reported back that they have tried to install 3 different versions and all of them fail to install/compile.

It is a bit messy to debug the compilation errors since I do not have access to the system and I'd have to get this info from the admins back and forth.

Hence I was wondering: do you happen to know if there is any way to make the precompiled (Ubuntu/Debian) versions of Sage work on CentOS 6? Which specific version should that be?

If not, do you have any other suggestions how to install Sage on the system without causing too much hassle to the admins?


Thanks,

Jernej


Jeroen Demeyer

unread,
May 28, 2015, 5:45:47 AM5/28/15
to sage-s...@googlegroups.com
On 2015-05-28 11:41, Jernej wrote:
> It is a bit messy to debug the compilation errors since I do not have
> access to the system and I'd have to get this info from the admins back
> and forth.

Can you ask for all the log files (the contents of the logs/ directory)
of the attempt to install Sage 6.7?


Nathan Dunfield

unread,
May 28, 2015, 2:51:11 PM5/28/15
to sage-s...@googlegroups.com, barb...@arnes.si
I would like to use Sage on a large computing grid running on CentOS 6.

I use Sage on a very similar cluster running another RHEL 6 clone, namely Scientific Linux 6.6.  I had no issues building Sage 6.7 from source using gcc 4.6.3.

Nathan

William Stein

unread,
May 28, 2015, 3:02:39 PM5/28/15
to sage-support, barb...@arnes.si
On Thu, May 28, 2015 at 2:41 AM, Jernej <azi.s...@gmail.com> wrote:
> Hello!
>
> I would like to use Sage on a large computing grid running on CentOS 6.
>
> I've asked the administrators (CC'ed) of the grid to install Sage on the
> grid system and they reported back that they have tried to install 3
> different versions and all of them fail to install/compile.
>
> It is a bit messy to debug the compilation errors since I do not have access
> to the system and I'd have to get this info from the admins back and forth.
>
> Hence I was wondering: do you happen to know if there is any way to make the
> precompiled (Ubuntu/Debian) versions of Sage work on CentOS 6? Which
> specific version should that be?

Don't do that! One should create a virtual machine running CentOS 6,
build Sage on it, and then give the binary to the ops people.

I just noticed that Google compute engine has ready-to-go CentOS 6
instances, so I'll just try running one and doing this and report back
-- I guess it'll take a few hours.

William

>
> If not, do you have any other suggestions how to install Sage on the system
> without causing too much hassle to the admins?
>
>
> Thanks,
>
> Jernej
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support...@googlegroups.com.
> To post to this group, send email to sage-s...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.



--
William (http://wstein.org)

William Stein

unread,
May 28, 2015, 3:21:10 PM5/28/15
to sage-support, Andrew Ohana, barb...@arnes.si
On Thu, May 28, 2015 at 12:01 PM, William Stein <wst...@gmail.com> wrote:
> On Thu, May 28, 2015 at 2:41 AM, Jernej <azi.s...@gmail.com> wrote:
>> Hello!
>>
>> I would like to use Sage on a large computing grid running on CentOS 6.
>>
>> I've asked the administrators (CC'ed) of the grid to install Sage on the
>> grid system and they reported back that they have tried to install 3
>> different versions and all of them fail to install/compile.
>>
>> It is a bit messy to debug the compilation errors since I do not have access
>> to the system and I'd have to get this info from the admins back and forth.
>>
>> Hence I was wondering: do you happen to know if there is any way to make the
>> precompiled (Ubuntu/Debian) versions of Sage work on CentOS 6? Which
>> specific version should that be?
>
> Don't do that! One should create a virtual machine running CentOS 6,
> build Sage on it, and then give the binary to the ops people.
>
> I just noticed that Google compute engine has ready-to-go CentOS 6
> instances, so I'll just try running one and doing this and report back
> -- I guess it'll take a few hours.

Related to this, next month Andrew Ohana is going to setup a bunch of
virtual machines hosted at UW specifically for building Sage on many
different linux distros...

William

>
> William
>
>>
>> If not, do you have any other suggestions how to install Sage on the system
>> without causing too much hassle to the admins?
>>
>>
>> Thanks,
>>
>> Jernej
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sage-support...@googlegroups.com.
>> To post to this group, send email to sage-s...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/sage-support.
>> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> William (http://wstein.org)



--
William (http://wstein.org)

William Stein

unread,
May 28, 2015, 5:12:44 PM5/28/15
to sage-support, barb...@arnes.si
On Thu, May 28, 2015 at 12:01 PM, William Stein <wst...@gmail.com> wrote:
> On Thu, May 28, 2015 at 2:41 AM, Jernej <azi.s...@gmail.com> wrote:
>> Hello!
>>
>> I would like to use Sage on a large computing grid running on CentOS 6.
>>
>> I've asked the administrators (CC'ed) of the grid to install Sage on the
>> grid system and they reported back that they have tried to install 3
>> different versions and all of them fail to install/compile.
>>
>> It is a bit messy to debug the compilation errors since I do not have access
>> to the system and I'd have to get this info from the admins back and forth.
>>
>> Hence I was wondering: do you happen to know if there is any way to make the
>> precompiled (Ubuntu/Debian) versions of Sage work on CentOS 6? Which
>> specific version should that be?
>
> Don't do that! One should create a virtual machine running CentOS 6,
> build Sage on it, and then give the binary to the ops people.
>
> I just noticed that Google compute engine has ready-to-go CentOS 6
> instances, so I'll just try running one and doing this and report back
> -- I guess it'll take a few hours.

The not surprising result -- given your original post -- is that Sage
doesn't build on CentOS 6. I took the standard minimal CentOS 6
image (on Google Compute Engine), then did this:

yum groupinstall 'Development Tools'

and downloaded sage-6.7, extracted the source, and typed "make", which
ended in failure building git (complete build log at
http://wstein.org/tmp/install-fail.log.bz2 -- I put the end at [1]
below).

I have no additional time to work on this. I think your options include:

1. setup a CentOS development environment somewhere and get Sage to
build on it, or

2. wait and hope some Sage developer decides to make Sage support
CentOS 6 (which isn't even the current version).

3. Try to use a binary built for a different platform on CentOS --
maybe it will sort of work well enough for your use.

4. pay somebody to do 1.

-- William


[1] End of build log:

Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains:
/usr/local/lib64/perl5 /usr/local/share/perl5
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl
/usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.
make[4]: *** [perl.mak] Error 2
make[4]: Leaving directory
`/home/salvus/sage-6.7/local/var/tmp/sage/build/git-2.3.0/src/perl'
make[3]: *** [perl/perl.mak] Error 2
make[3]: Leaving directory
`/home/salvus/sage-6.7/local/var/tmp/sage/build/git-2.3.0/src'
Error building git.
=====







--
William (http://wstein.org)

Volker Braun

unread,
May 28, 2015, 5:50:21 PM5/28/15
to sage-s...@googlegroups.com, barb...@arnes.si
Sage requires Perl which is split into different packages on Rh/Centos. Just run

yum install perl-ExtUtils-MakeMaker

William Stein

unread,
May 28, 2015, 6:17:11 PM5/28/15
to sage-support, barb...@arnes.si
On Thu, May 28, 2015 at 2:50 PM, Volker Braun <vbrau...@gmail.com> wrote:
> Sage requires Perl which is split into different packages on Rh/Centos. Just
> run
>
> yum install perl-ExtUtils-MakeMaker
>

Yep, that's worked so far. It looks like "2. wait and hope some Sage
developer decides to make Sage support CentOS 6 (which isn't even the
current version)." means "wait 25 minutes for Volker" :-)

William

>
>
> On Thursday, May 28, 2015 at 11:41:13 AM UTC+2, Jernej wrote:
>>
>> Hello!
>>
>> I would like to use Sage on a large computing grid running on CentOS 6.
>>
>> I've asked the administrators (CC'ed) of the grid to install Sage on the
>> grid system and they reported back that they have tried to install 3
>> different versions and all of them fail to install/compile.
>>
>> It is a bit messy to debug the compilation errors since I do not have
>> access to the system and I'd have to get this info from the admins back and
>> forth.
>>
>> Hence I was wondering: do you happen to know if there is any way to make
>> the precompiled (Ubuntu/Debian) versions of Sage work on CentOS 6? Which
>> specific version should that be?
>>
>> If not, do you have any other suggestions how to install Sage on the
>> system without causing too much hassle to the admins?
>>
>>
>> Thanks,
>>
>> Jernej
>>
>>

William Stein

unread,
May 28, 2015, 7:26:00 PM5/28/15
to sage-support, barb...@arnes.si
Hi,

I've put a working sage-6.7 build on a minimal CentOS 6 install here:

http://wstein.org/tmp/sage-6.7-centos.tar.bz2

I built this by starting with a minimal CentOS 6 install, then typing

yum groupinstall 'Development Tools'
yum install perl-ExtUtils-MakeMaker

Then extracting the sage tarball and typing "make". That's it.

-- William


-- William
--
William (http://wstein.org)

Jernej

unread,
May 31, 2015, 7:11:14 PM5/31/15
to sage-s...@googlegroups.com

Hello,

thank you for this! The admins were now able to successfully install Sage on the grid.

All the best,

Jernej
Reply all
Reply to author
Forward
0 new messages