Compdigitec Labs

« | Home | »

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.

  1. Download re2c 0.13.5 and extract it to a temporary folder (/usr/src/re2c in the logs).
  2. Configure re2c with ./configure --prefix=/re2c. If you require it, here are logs of an successful configure.
  3. If successful, build re2c with make. Again, here are the make logs of a successful make if you require it.
  4. If successful, copy re2c to /re2c with make install. If you require it, here are make install logs. (Installation comes later).
  5. 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.
  6. Now build a Debian/Ubuntu package: (stripped down version of this article – read it for more details)
    1. Make a new folder called package
    2. Change into the package folder
    3. Make a new folder called DEBIAN
    4. 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)
    5. Copy /re2c to here and rename it usr
    6. (Important) Create a dummy link with ln -s /re2c /usr
    7. Change to the parent directory
    8. Build package with dpkg-deb --build package.
    9. If everything was successful, your new package is in package.deb!
  7. Remove /re2c and all sub-folders.
  8. 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 | 28 Comments »

28 Responses to “Compiling re2c 0.13.5 on Ubuntu 8.04+ (binaries available)”

  1. Newsflx Says:
    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/

  2. tammna Says:
    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

  3. admin Says:
    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.

  4. https://qaztechforum.kz/ Says:
    July 29th, 2025 at 06:45

    … [Trackback]

    […] There you will find 52170 additional Information to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  5. เกียรติบัตร Says:
    July 29th, 2025 at 17:14

    … [Trackback]

    […] Here you will find 37636 additional Info on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  6. بث مباشر مباريات اليوم Says:
    July 30th, 2025 at 10:41

    … [Trackback]

    […] Here you will find 63676 additional Information on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  7. يلا شوت مباشر Says:
    July 30th, 2025 at 11:53

    … [Trackback]

    […] Here you will find 62081 more Info on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  8. รับออกแบบ อพาร์ทเมนท์ Says:
    July 30th, 2025 at 18:37

    … [Trackback]

    […] Here you will find 97470 more Information on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  9. ร้านตัดแว่น ใกล้ฉัน Says:
    July 30th, 2025 at 23:52

    … [Trackback]

    […] Find More here to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  10. เช็คสลิปโอนเงิน Says:
    July 31st, 2025 at 21:47

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  11. เน็ตบ้าน ais Says:
    August 3rd, 2025 at 18:37

    … [Trackback]

    […] Info on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  12. sternclient Says:
    August 4th, 2025 at 15:15

    … [Trackback]

    […] Read More Info here to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  13. รับจด อย Says:
    August 4th, 2025 at 18:16

    … [Trackback]

    […] Find More here to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  14. แทงหวย Says:
    August 4th, 2025 at 18:20

    … [Trackback]

    […] Here you can find 10371 additional Info on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  15. ครูเกอร์ Says:
    August 5th, 2025 at 18:28

    … [Trackback]

    […] Read More on on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  16. ดูหนังใหม่ Says:
    August 5th, 2025 at 18:44

    … [Trackback]

    […] Read More on on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  17. ระบบหลังบ้าน Says:
    August 9th, 2025 at 21:33

    … [Trackback]

    […] There you will find 45813 more Information to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  18. เว็บตรงฝากถอนง่าย Says:
    August 10th, 2025 at 01:43

    … [Trackback]

    […] Read More on to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  19. เน็ต ais Says:
    August 13th, 2025 at 01:26

    … [Trackback]

    […] There you will find 6298 additional Info on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  20. 游戏专业代写 Says:
    August 13th, 2025 at 01:59

    … [Trackback]

    […] Information on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  21. โบลเวอร์ kruger Says:
    August 15th, 2025 at 18:09

    … [Trackback]

    […] Read More Information here to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  22. clothing manufacturer Says:
    August 16th, 2025 at 18:19

    … [Trackback]

    […] Read More Info here to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  23. ล้างแอร์ Says:
    August 20th, 2025 at 00:18

    … [Trackback]

    […] Read More on to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  24. Chicken Road Says:
    August 20th, 2025 at 04:43

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  25. av Says:
    August 20th, 2025 at 18:27

    … [Trackback]

    […] Information to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  26. เว็บปั้มไลค์ Says:
    August 22nd, 2025 at 18:18

    … [Trackback]

    […] Here you will find 65156 more Information on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  27. checkslip Says:
    August 23rd, 2025 at 18:16

    … [Trackback]

    […] There you will find 69406 additional Info to that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

  28. 78win Says:
    August 30th, 2025 at 18:23

    … [Trackback]

    […] Find More Info here on that Topic: compdigitec.com/labs/2008/08/19/compiling-re2c-0135-on-ubuntu-804/ […]

Comments