DOWNLOAD INSTALL OF THE PATHSCALE COMPILER SUITE FROM A NON-ROOT TAR FILE

The Red Hat, Fedora, and SUSE distributions of the PathScale Compiler Suite can also be installed in the form of non-root tar files, which don't require root permissions to install. These tar files are available, by distribution, from the download page.

For root installation using RPMs, refer to this page.

Note: Floating subscriptions require the Subscription Manager server to be installed from an RPM. Nodelocked subscriptions do not require the Subscription Manager server to be installed.

For more details on this process and installation options, refer to the Install Guide.

Problems?

If you encounter problems:

  1. Refer to the Install Guide and the release notes to see if the problem is addressed in either of those two documents.
  2. Check the FAQ and Post Release Issues links on the PathScale support page: http://www.pathscale.com/support.html
  3. Contact PathScale support: support@pathscale.com


General Instructions for a Non-root Install to the Default Location

Step 1: Download the appropriate version of the compiler non-root tar file by clicking on the appropriate link on the download page.

Step 2: The tar file that was just downloaded contains a portion of the CD image that contains the non-root tar ball. The tar file will be unpacked into the current directory.

First, extract the CD image:

$ cd <temporary_directory>

Unpack the tar file using the command:

$ tar xfj <filename>.tar 

In the extracted directory, change the directory to the distribution of interest:

$ cd pathscale-eko-compilers-<version>  \/<distro>/tar

Unpack the tar file using the command:

$ tar xfj <filename>.tar.bz2

Note: This tar file is compressed using the bzip2 compression program, which is installed as standard utility on all Linux machines. If for some reason /usr/bin/bzip2 does not exist on your system, it is available on your distribution media (that came with your operating system).

The <filename> will the distribution you selected from the download page. The tar file will be unpacked into a directory whose name looks like this:

  pathscale-compilers-fedora-3.0.99-74.2093 

This directory can be renamed and moved to another location:

$ mv pathscale-compilers-fedora-3.0.99-74.2093  \/usr/local/pathscale

Step 3: Configure your PATH, LD_LIBRARY_PATH, and MANPATH to point to this install directory

  1. Set your shell's PATH so it contains the path to wherever you installed the compilers (the <install_directory>/bin). For instance, if you installed to the /usr/local directory, and renamed the directory pathscale, put /usr/local/pathscale/bin in your PATH.
  2. You should not need to modify MANPATH, but if you do, add /usr/local/pathscale/man to your MANPATH. See Section 4.11.1 in the Install Guide for more information on setting your PATH and MANPATH.
  3. Set the LD_LIBRARY_PATH environment variable: When installing using RPMs, a file called /etc/ld.so.conf is automatically updated to point at the locations of the shared versions of the runtime libraries. The ldconfig program is run to tell the dynamic linker about these new directories.

    If you are installing a non-root tar file, you must configure the dynamic linker by hand. There are two ways to do this, depending on whether you have root privileges.

    If you do not have root privileges, (using a bash shell) type the following:

    		$ export LD_LIBRARY_PATH=<install_directory>  \	/lib/<version>: \	<install_directory>/lib/<version>  \	/32:$LD_LIBRARY_PATH	
    	

    If you have root privileges, point to shared files after a non-root tar file installation by adding the following lines to /etc/ld.so.conf (the order in which they appear does not matter):

    		/<install_directory>/lib/<release>	/<install_directory>/lib/<release>/32 	
    	

    After adding these lines, run the /sbin/ldconfig program to tell the dynamic linker about these new directories. You will need root privileges to do this.

    		# /sbin/ldconfig 	
    	

    If you have root access, refer to Section 4.5.2.1 of the Install Guide for instructions on how to update the system file to do this for you automatically.

    Note: For more information on ldconfig, see the ldconfig man page. If you uninstall a non-root tar file release of the compilers, delete these lines from /etc/ld.so.conf and rerun ldconfig.

Note: This process does not install the Subscription Manager server, which is required if a floating subscription is being used. The Subscription Manager server software can only be installed using the RPMs. See Subscription Management for details.

Step 4: Subscription Management

The PathScale Compiler Suite will not run without a valid and correctly installed subscription file, whether you are using a floating subscription or a nodelocked subscription.

The subscription management client was extracted and installed along with the compiler suite.

Nodelocked Subscription:

For a nodelocked subscription, you need to install the new subscription file (received separately from PathScale) and then you are ready to start compiling. See Installing the Subscription File section below.

Floating Subscription:

Installing and starting the Subscription Manager server

Note: This RPM will be needed only if you are using floating subscriptions.

You will have to get the Subscription Manager server RPM from an RPM download. See the download page for the RPM downloads. See the Download install for RPMs page for more details on unpacking the RPMs.

To install the server, do the following:

# cd <temporary_directory> \/pathscale-eko-compilers-3.0.99 \/<distribution_name>/subscription-server# rpm -Uhv *.rpm

You will see an installation message similar to this as the installation progresses.

Preparing...               ################# [100%]1:pathscale-sub-server   ################# [100%]

Once this installation has been completed, then install the subscription file as discussed in Installing the Subscription File below.

When the subscription file is in place, then start the Subscription Manager server:

# /etc/init.d/pathscale-sub start

Installing the Subscription File

To install the subscription file, copy the pscsubscription-compiler-*.xml file you received from PathScale and, on all of the systems where the compilers and the subscription manager server is installed, place it into /opt/pathscale/lib/3.0.99 and then make sure it is world readable:

# cp pscsubscription-compiler-*.xml /opt/ \pathscale/lib/3.0.99# chmod ugo+r /opt/pathscale/lib/3.0.99/  \pscsubscription-compiler-*.xml

Step 5: Test the compiler

Compile a small program (ex: a "hello world") to verify that the installation is correct.

$ cat hello.c#include <stdio.h>int main () {int i;printf("Hello from PathScale\n");return 0;}$ export PATH=/opt/pathscale/bin:${PATH}$ pathcc -o hello hello.c$ ./helloHello from PathScale$ 


Changing Install Locations

You can rename your installation directory or copy it to another directory, but you must not rearrange the structure of anything within the directory, or the compiler may not work.

The compiler will be installed under <your_directory> (for example /compilers/pathscale). It should not be necessary to modify either your PATH or your MANPATH (the scripts in /etc/profile.d should configure these). If for some reason, you are having trouble with your PATH or MANPATH, see Section 4.11.1 in the Install Guide for instructions on setting your PATH and MANPATH to <your_directory>.

Optional Source and Binary Download Procedure

For convenience and to satisfy the conditions of the GPL, you may select to download the ISO CD ROM image of the entire PathScale Compiler Suite. This disk image includes the compiled product for each supported platform, as well as the source code covered under the GPL.

Burn a CD ROM from the downloaded ISO image, using any familiar tool, then proceed with the install as documented in the release notes.

Please note that each time the compiler is upgraded, you will have the same option to download the source code. You may prefer to shorten your download and install time by selecting a binary-only version at this time.

Back to top