On Jun 3, 1:59 pm, Melissa <
toxyouxunkn...@gmail.com> wrote:
> Hi-
Hi Melissa,
> I'm sort of new to compiling things from source [and new to CentOS]. I
> followed the instructions detailed in the .pdf for compiling from
> source, including making sure I had the necessary repos. However, I
> know it didn't work, because it took all of five seconds and after
> each thing it said this: "You must set the SAGE_ROOT environment
> variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/
> directory."
>
> When trying to run sage by changing into the directory and typing "./
> sage", I get the following message at the bottom: "ImportError: /home/
> syslin/sage-3.0.2-rhel32bit-intelx86-i686-Linux/local/lib/libpari-
> gmp.so.2: cannot restore segment prot after reloc: Permission denied
> <ERROR: name 'sage_prompt' is not defined>".
You have SELinux enabled which causes the above problem. You can
either disabled SELinux or relabel the libraries of Sage. How to do
that can be found at
http://www.ittvis.com/services/techtip.asp?ttid=3092
But that is not Centos specific. Others on this list run Sage with
SELinux enabled, so hopefully they can give you more detailed input
what to do.
> Also, I'm confused as to which tar I should've downloaded. I used the
> RHEL one. Is this right? The OS is CentOS 5.1.
Yes, the RHEL ones should run out of the box on a Centos install [i.e.
RHEL 5 is the same as Centos 5, RHEL 5 Update 1 is Centos 5.1]. The
CPU type should obviously match.
> -Melissa
Cheers,
Michael