« Using UTF-8 in PHP-GTK2 | Home | Changing the user agent of PHP »
Compiling re2c 0.13.5 on Ubuntu 8.04+ (binaries available)
By admin | August 19, 2008
If you need the latest features of the re2c compiler, you would normally sudo apt-get install re2c to install the re2c compiler. However, the Ubuntu packaging team (again) has not updated their re2c package to the latest re2c v0.13.5, so here are some pre-compiled re2c binaries. Be sure to remove the official version in the repos before installing.
Download pre-compiled packages of re2c 0.13.5
If you still want to compile it yourself, make sure you install GNU Bison, GNU C Compiler and the build essentials – you can do all of this with sudo apt-get install bison gcc build-essential
.
- Download re2c 0.13.5 and extract it to a temporary folder (/usr/src/re2c in the logs).
- Configure re2c with
./configure --prefix=/re2c
. If you require it, here are logs of an successful configure. - If successful, build re2c with
make
. Again, here are the make logs of a successful make if you require it. - If successful, copy re2c to /re2c with
make install
. If you require it, here are make install logs. (Installation comes later). - Test it by running
/re2c/bin/re2c --version
. It should return “re2c 0.13.5”. If it does not, repeat all of the steps above and try again. - Now build a Debian/Ubuntu package: (stripped down version of this article – read it for more details)
- Make a new folder called package
- Change into the package folder
- Make a new folder called DEBIAN
- Inside the DEBIAN folder, create a file called control. See http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Package for more details. (Note: do not name the package re2c to avoid conflict with the existing one)
- Copy /re2c to here and rename it usr
- (Important) Create a dummy link with
ln -s /re2c /usr
- Change to the parent directory
- Build package with
dpkg-deb --build package
. - If everything was successful, your new package is in package.deb!
- Remove /re2c and all sub-folders.
- You’re done! Install your package with dpkg -i package.deb.
If this article was useful or helpful, please help Compdigitec spread the word or please leave a comment. Don’t forget to subscribe to Compdigitec Labs for more interesting articles!
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!
Topics: Linux | 31 Comments »
November 25th, 2009 at 23:51
Here’s a great PDF guide for Ubuntu Karmic Koala. Its something both linux newbs and experts will appreciate. http://www.makeuseof.com/tag/the-incredible-guide-to-ubuntu-karmic-koala-linux-pdf/
May 9th, 2013 at 16:56
one dumb question , thats way of installing you mention ..whats the way to run this tool ..any particular command …My apology in advance for being newbie
May 11th, 2013 at 01:15
@tammna:
Usually tools like re2c are used by other programs, but you could use it directly if you wished to by running ‘re2c’ in the console.
February 16th, 2022 at 20:32
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
March 2nd, 2022 at 20:35
… [Trackback]
[…] Read More on to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
March 23rd, 2022 at 03:28
… [Trackback]
[…] Read More here to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
April 17th, 2022 at 14:34
… [Trackback]
[…] Read More Info here to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
April 25th, 2022 at 18:36
… [Trackback]
[…] Find More Info here to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
May 4th, 2022 at 07:43
… [Trackback]
[…] Read More on to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
May 22nd, 2022 at 18:59
… [Trackback]
[…] Info on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
May 26th, 2022 at 20:18
… [Trackback]
[…] Read More here on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
July 15th, 2022 at 06:13
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
July 26th, 2022 at 09:03
… [Trackback]
[…] Find More on to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
August 18th, 2022 at 20:09
… [Trackback]
[…] Info to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
August 31st, 2022 at 13:01
… [Trackback]
[…] Info on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
September 6th, 2022 at 16:46
… [Trackback]
[…] Find More on on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
September 25th, 2022 at 22:56
… [Trackback]
[…] Read More on to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
October 3rd, 2022 at 22:26
… [Trackback]
[…] Here you can find 32836 additional Info to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
October 15th, 2022 at 18:55
… [Trackback]
[…] Info on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
October 19th, 2022 at 00:20
… [Trackback]
[…] Info on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
November 2nd, 2022 at 04:03
… [Trackback]
[…] Read More Information here on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
November 10th, 2022 at 21:07
… [Trackback]
[…] Read More Info here to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
January 24th, 2023 at 15:05
… [Trackback]
[…] There you can find 46626 additional Info on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
January 28th, 2023 at 09:44
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
February 1st, 2023 at 05:29
… [Trackback]
[…] Find More on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
February 3rd, 2023 at 17:06
… [Trackback]
[…] Find More here to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
February 14th, 2023 at 01:30
… [Trackback]
[…] Here you can find 87095 additional Info on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
February 16th, 2023 at 08:15
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
March 5th, 2023 at 08:36
… [Trackback]
[…] Find More on to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
March 6th, 2023 at 19:29
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]
March 13th, 2023 at 19:40
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]