[sage-support] Fwd: Must SELinux be disabled to run sage?

2008-04-29 Thread Jason Martin

I'm running Sage on a RedHat EL box with SELinux turned on (and
 enforcing).  After a bit of fighting with SELinux, here's what I did
 to get it working:

 1.  As root, I created /usr/local/sage and assigned ownership of that
 directory to my user account.

 The SELinux context of that directory is/are:

 root:object_r:usr_t


 2.  As me (my user level account, with UMASK set to permit group and
 other read/execute), I unpack sage into, e.g.,
 /usr/local/sage/sage-3.0 which gets SELinux context:

 user_u:object_r:usr_t


 3.  I build sage in /usr/local/sage/sage-3.0

 4.  I then set a symbolc link /usr/local/sage/current -
 /usr/local/sage/sage-3.0 which has the same SELinux context as the
 referrent directory.


 Originally I tried building/installing Sage as root and I ran into all
 sorts of SELinux problems.  Installing directly into system
 directories (even when using a chmod to change ownership to a user)
 also caused headaches.

 This particular system had lots of user (mainly my students) using
 Sage, and with this setup no one has complained to me about not being
 able to run Sage.

 --jason

 On Tue, Apr 29, 2008 at 3:10 PM, William Stein [EMAIL PROTECTED] wrote:
 
   -- Forwarded message --
   From: [EMAIL PROTECTED] [EMAIL PROTECTED]
   Date: Tue, Apr 29, 2008 at 8:15 AM
   Subject: Re: Must SELinux be disabled to run sage?
   To: William Stein [EMAIL PROTECTED]
   Cc: Richard Vaughn [EMAIL PROTECTED]
 
 
   Hi William:
 
Thanks for the response.
Always nice to learn it wasn't something *I* was doing.   :)
 
Is the issue here, as mentioned in the README, that SELinux affects
default
system behaviors such as shared Library loading, and that's why sage
has a problem?
(And, if that's the case, then wouldn't a lot of other applications
also fail?)
 
Thanks,
-Richard Vaughn
 
On Apr 23, 3:36 pm, William Stein [EMAIL PROTECTED] wrote:
 
On Wed, Apr 23, 2008 at 12:33 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

   I recently installed sage on a Fedora Core 6 machine,
   and it appears that sage only runs when SELinux (secure linux) is
   disabled.

   When I run it w/ SELINUX=enforcing in /etc/sysconfig/selinux,
   I get cannot restore segment prot after reloc: Permission denied
   when I start sage.

   Is this the case, that SELinux must be disabled to run sage?

 Yes.  This is mentioned in the Sage README.txt.

   Or is there perhaps a workaround?

 I don't know of one.   I hope somebody eventually finds one and
 submits it to the sage project.



   Thanks,
   -Richard Vaughn

 --



-- 
Jason Worth Martin
Asst. Professor of Mathematics
http://www.math.jmu.edu/~martin

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Fwd: SAGE-2.3 build question..

2007-04-02 Thread Jason Martin

Hi Chris,

Also:

a)  What OS are you running on that Mips machine?

b)  What compiler version are you using?

c)  What is the output of 'file /usr/lib/libgcc_s.so'  (That's
assuming you're using an OS with a file command that displays the
architecture switches of library files... if you're using HP-UX or
Irix, then I have no clue how to find out that information.)

Good luck!

--jason

On 4/2/07, David Joyner [EMAIL PROTECTED] wrote:

 Although I can't answer your question, it might help someone else answer it
 more queickly if you were to
 (a) try installing from scratch the latest version (which is 2.4.1.2)
 (b) if you still have a problem, describe what kind of machine you are using.

 

 On 4/2/07, William Stein [EMAIL PROTECTED] wrote:
 
  -- Forwarded message --
  From: Christopher Kerr 
  Date: Apr 2, 2007 12:46 PM
  Subject: Fwd: SAGE-2.3 build question..
  To: [EMAIL PROTECTED]
 
 
  Hi:  I'm getting the following message when I try and build SAGE-2.3:
 
  _gdmodule.c:1809: warning: passing argument 3 of 'PyString_AsStringAndSize'
  from incompatible pointer type
  gcc -pthread -shared build/temp.linux-mips64-2.5/_gdmodule.o
  -L/home/ckerr/sage-2.3/local/lib -L/usr/local/lib -L/usr/lib -lgd -lpng -lz
  -lfreetype -o build/lib.linux-mips64-2.5/_gd.so
  /usr/lib/libgcc_s.so: could not read symbols: File in wrong format
 
  What file do I have to change to remove the reference to:  -L/usr/local/lib
  -L/usr/lib as these libraries are causing the problem. What I want is the
  system to determine what paths to look for.
 
  Thanks for your help.
 
  Chris
 
  ---
 
  --
  Dr. Christopher L. Kerr
  Geophysical Fluid Dynamics Laboratory
  Forrestal Campus
  Princeton University
  Princeton, New Jersey  08542
  Telephone: (609) 452-6573
  Fax:   (609) 987-5063
  Email: [EMAIL PROTECTED]
 
 
 
  --
  William Stein
  Associate Professor of Mathematics
  University of Washington
  http://www.williamstein.org
 
  
 

 



-- 
Jason Worth Martin
Asst. Prof. of Mathematics
James Madison University
http://www.math.jmu.edu/~martin
phone: (+1) 540-568-5101
fax: (+1) 540-568-6857

Ever my heart rises as we draw near the mountains.
There is good rock here. -- Gimli, son of Gloin

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---