Installing m4 Macro Processor on Ubuntu Linux

 

This short tutorial shows you how to install m4 (macro processor) on Ubuntu Linux Server. The process is very simple. For this tutorial, I'll be installing m4 version 1.4.10. Linux kernel is 2.6.15-26-powerpc. I have used a Mac Mini (powerpc/ppc architecture). GCC version number is 4.0.3. Your configuration may be different from mine but the installation steps below should work fine for most configurations with little or no change at all (including other Linux distributions and even unixes e.g. MacOS X).

m4 (general purpose macro processor):

According to gnu.org,

"GNU m4 is a general purpose macro processor. For more info please visit http://www.gnu.org/software/m4/m4.html."

Before starting, please check to see if there is a latest version available to download. Visit http://www.gnu.org/software/m4/m4.html to find out about the available versions. IMPORTANT: See "Configuring Ubuntu Linux After Installation" to install the development tools required to compile and install m4 from source code.

Steps to download, compile, and install are as follows. Note: Replace 1.4.10 with your version number:

  • Downloading m4:

    Run the command below,

    wget ftp://ftp.gnu.org/gnu/m4/m4-1.4.10.tar.gz

  • Extracting files from the downloaded package:

    tar -xvzf m4-1.4.10.tar.gz

    Now, enter the directory where the package is extracted.

    cd m4-1.4.10

  • Configuring m4:

    ./configure --prefix=/usr/local/m4

    Replace "/usr/local/m4" above with the directory path where you want to copy the files and folders. Note: check for any error message.
  • Compiling m4:

    make

    Note: check for any error message.

  • Installing m4:

    As root (for privileges on destination directory), run the following.

    With sudo,

    sudo make install

    Without sudo,

    make install

    Note: check for any error messages.

That’s it. m4 (general purpose macro processor) has been successfully installed.

Please feel free to use the comments form below if you have any questions or need more explanation on anything.

Tags

linux, m4,

Popular Searches

linux, php, mysql, ubuntu, mysql mysql, tools, install mysql, gearman, source code, java

more>>

Comments (write a comment):

0 comments so far. Be the first one to leave a comment on this article.

 

Comment