To set up the apt-get, aptitude, or synaptic package managers to access the GCCUPC.ORG repository, first you must add GUPC repository. After adding the repository you can use the operating system's package management tools (such as aptitude) to install packages and their dependencies. Note that installation of binary or source packages from the repository requires network availability and system administration privileges.
Add the 'gupc' repository to your system by adding the following two lines to the /etc/apt/sources.list file:
deb http://www.gccupc.org/pub/pkg/ubuntu oneiric main deb-src http://www.gccupc.org/pub/pkg/ubuntu oneiric main
Add the repository GPG key:
wget -q -O- http://www.gccupc.org/pub/pkg/DEB-GPG-KEY-GUPC | apt-key add -
And, make apt aware of the new software repositories by issuing the following command:
aptitude update
For more information on ubuntu repositories please visit https://help.ubuntu.com/community/Repositories/Ubuntu.
Installing binary packages
First, install the GUPC and all the packages on which it depends:
aptitude install gupc-upc-4.7
Using GUPC
GUPC is installed under /usr/local/gupc. Add the GUPC directories to your PATH, LD_LIBRARY_PATH, MANPATH, and INFOPATH. For example:
export PATH=/usr/local/gupc/bin:$PATH export LD_LIBRARY_PATH=\
/usr/local/gupc/lib/x86_64-linux-gnu:/usr/loca/gupc/lib32:$LD_LIBRARY_PATH export MANPATH=/usr/local/gupc/share/man:$MANPATH export INFOPATH=/usr/local/gupc/share/info:$INFOPATH
How to Rebuild GUPC from the Source Package
First, download the GUPC source package. The source package consists of these files:
gupc-gcc-4.7_4.7.0.2-0oneiric1.diff.gz gupc-gcc-4.7_4.7.0.2-0oeniric1.dsc gupc-gcc-4.7_4.7.0.2.orig.tar.gz
This can be done with a simple command that downloads all three files:
apt-get source gupc-gcc-4.7
To rebuild GUPC, first install the debhelper and devscripts packages, if they are not already installed. Next, extract the source and build new binary packages:
dpkg-source -x gupc-gcc-4.7_4.7.0.2-0oeniric1.dsc cd gupc-gcc-4.7-4.7.0.2 dpkg-buildpackage
The dpkg-buildpackage tool might report additional packages that need to be installed in order to rebuild GUPC. Install those packages and invoke the dpkg-buildpackage tool again.
To install GUPC in a different location, after extracting the source package, change line 809 of gupc-gcc-4.7-4.7.0.2/debian/rules.def to the new location.
PKGPF = usr/local/gupc
Note that PKGPF is a relative path name: it does not start with a slash.








