should we check for openssl in prereq?

83 views
Skip to first unread message

John H Palmieri

unread,
Aug 2, 2012, 9:46:47 PM8/2/12
to sage-...@googlegroups.com
Given the number of people who have problems installing Sage because their system is missing openssl, should we check for that in the prereq script, so that the error is caught as soon as possible, and so that we can write a good error message? (Note that I'm not volunteering to do this, because I don't really know how...)

--
John

Rob Beezer

unread,
Aug 2, 2012, 9:50:46 PM8/2/12
to sage-...@googlegroups.com
As one who was bit by this, +1.

Volker Braun

unread,
Aug 2, 2012, 10:16:32 PM8/2/12
to sage-...@googlegroups.com
If you are going to add this, maybe you can also add dpkg-architecture on Ubuntu. This prerequisite (to figure out multiarch) one took me a while to figure out, and it wasn't installed on the Ubuntu box that I played with.

Just today I was also thinking about adding a script in front of the whole build process that will suggest a few required/suggested distribution packages to install before running the compilation and abort if they are not found. You could skip over that test by setting SAGE_PORT if you know what you are doing. Any thoughts on that?

William Stein

unread,
Aug 2, 2012, 10:40:25 PM8/2/12
to sage-...@googlegroups.com


On Thursday, August 2, 2012, Volker Braun <vbrau...@gmail.com> wrote:
> If you are going to add this, maybe you can also add dpkg-architecture on Ubuntu. This prerequisite (to figure out multiarch) one took me a while to figure out, and it wasn't installed on the Ubuntu box that I played with.
> Just today I was also thinking about adding a script in front of the whole build process that will suggest a few required/suggested distribution packages to install before running the compilation and abort if they are not found. You could skip over that test by setting SAGE_PORT if you know what you are doing. Any thoughts on that?
>

I'm +1 to this.


>
> On Thursday, August 2, 2012 9:46:47 PM UTC-4, John H Palmieri wrote:
>>
>> Given the number of people who have problems installing Sage because their system is missing openssl, should we check for that in the prereq script, so that the error is caught as soon as possible, and so that we can write a good error message? (Note that I'm not volunteering to do this, because I don't really know how...)
>>
>> --
>> John
>>
> --
> --
> To post to this group, send an email to sage-...@googlegroups.com
> To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-devel
> URL: http://www.sagemath.org
>  
>  
>  
>

--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

Jeroen Demeyer

unread,
Aug 3, 2012, 2:05:17 AM8/3/12
to sage-...@googlegroups.com
On 2012-08-03 04:16, Volker Braun wrote:
> If you are going to add this, maybe you can also add dpkg-architecture
> on Ubuntu. This prerequisite (to figure out multiarch) one took me a
> while to figure out, and it wasn't installed on the Ubuntu box that I
> played with.
And how are you going to find out whether you're on a system which has
multi-arch? That's non-trivial by itself.

Jeroen Demeyer

unread,
Aug 3, 2012, 2:11:00 AM8/3/12
to sage-...@googlegroups.com

Jeroen Demeyer

unread,
Aug 3, 2012, 6:16:33 AM8/3/12
to sage-...@googlegroups.com
On 2012-08-03 08:11, Jeroen Demeyer wrote:
> I created http://trac.sagemath.org/sage_trac/ticket/13329 for this.
Needs review.

Volker Braun

unread,
Aug 3, 2012, 9:58:01 AM8/3/12
to sage-...@googlegroups.com
If the system has dpkg, then it should also have dpkg-architecture. Or you have to set SAGE_PORT and skip the prerequisite checks if you feel adventurous. 

I've updated the ticket with a new version to that effect.

Jan Groenewald

unread,
Aug 4, 2012, 6:09:14 AM8/4/12
to sage-...@googlegroups.com
Hi

Seems dpkg-architecture is in dpkg-dev not dpkg.
0 jan@osprey:~$dpkg -S dpkg-architecture
dpkg-dev: /usr/share/man/es/man1/dpkg-architecture.1.gz
dpkg-dev: /usr/share/man/de/man1/dpkg-architecture.1.gz
dpkg-dev: /usr/share/man/sv/man1/dpkg-architecture.1.gz
dpkg-dev: /usr/share/man/pl/man1/dpkg-architecture.1.gz
dpkg-dev: /usr/share/man/fr/man1/dpkg-architecture.1.gz
dpkg-dev: /usr/bin/dpkg-architecture
dpkg-dev: /usr/share/man/man1/dpkg-architecture.1.gz

Regards,
Jan


--
--
To post to this group, send an email to sage-...@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
 
 
 



--
  .~.
  /V\     Jan Groenewald
 /( )\    www.aims.ac.za
 ^^-^^


Volker Braun

unread,
Aug 4, 2012, 9:49:21 AM8/4/12
to sage-...@googlegroups.com
This is precisely my point, for some reason dpkg-architecture is not installed by default, while dpkg is of course installed by default. So prereq should check that it is. AFAIR Python will silently compile to a very reduced featurese because it can't find multiarch libraries, which is why this is particularly tricky to debug.
Reply all
Reply to author
Forward
0 new messages