Back to wiki

RCS History

/ TOP / supported-platforms.mdwn

Differences for revision 1.42 from 1.41


--- supported-platforms.mdwn	2013/02/20 06:51:41	1.41
+++ supported-platforms.mdwn	2017/05/30 02:55:52	1.42
@@ -102,6 +102,40 @@
         me@MY-BOX:~/pcc$ sh -c './configure&& make all'
         me@MY-BOX:~/pcc$ sudo make install
 
+ - __Ubuntu 14.04 and 16.04 LTS (i386/amd64)__
+
+ Install a standard building environment (gcc, binutils, make), and also bison and flex:
+
+        me@MY-BOX:~$ sudo apt-get install build-essential flex bison
+
+ Fetch the source files as described above, or download the tarballs from http://pcc.ludd.ltu.se/ftp/pub/pcc and http://pcc.ludd.ltu.se/ftp/pub/pcc-libs, and unpack them.
+
+        me@MY-BOX:~$ cd ~/pcc
+
+ When installing pcc under /usr, there's a filename conflict with GNU cpp package in /usr/share/man/man1/cpp.1. To avoid it, rename the installed manual to pcc-cpp:
+
+        me@MY-BOX:~/pcc$ sed -i 's/MANPAGE=@BINPREFIX@cpp/MANPAGE=@BINPREFIX@pcc-cpp/' cc/cpp/Makefile.in
+
+ To make the pcc package multiarch-compliant, the library file should be installed in architecture-specific path (/usr/lib/i386-linux-gnu for i386, or /usr/lib/x86_64-linux-lib for amd64):
+
+        me@MY-BOX:~/pcc$ ./configure --prefix=/usr --libexecdir=/usr/lib/{x86_64,i386}-linux-gnu
+        me@MY-BOX:~/pcc$ make
+
+ There is no `make uninstall`, so removing and upgrading pcc can be difficult. Thus, instead of installing pcc with `sudo make install` create a deb package and then install it with 'checkinstall'. This will install pcc and will create a debian package file called something like 'pcc_1.2.0-DEVEL-1_amd64.deb'.
+
+        me@MY-BOX:~/pcc$ sudo checkinstall
+
+ Now repeat the same steps for pcc-libs:
+
+        me@MY-BOX:~$ cd ~/pcc-libs
+        me@MY-BOX:~/pcc-libs$ ./configure --prefix=/usr --libexecdir=/usr/lib/{x86_64,i386}-linux-gnu
+        me@MY-BOX:~/pcc-libs$ make
+        me@MY-BOX:~/pcc-libs$ sudo checkinstall
+
+ To remove it from the system, do:
+
+        me@MY-BOX:~$ sudo dpkg -r pcc pcc-libs
+
  - __MidnightBSD-current (i386/sparc64)__
 
  Unless you're using the MirPorts Framework to install pcc, you must build and install the [[pcc-libs|pcc-libs]] module.

Powered by rcshistory.cgi 0.3