Posts Tagged ‘mac os x’

Installing gnuplot in Mac OS X

February 10, 2013 33 comments

The easiest way of installing gnuplot is using macports. Just Install macports and run “sudo port install gnuplot” , and this will install gnuplot along with all the dependencies. If you don’t want to install macports, then you can proceed with the following steps.

Before you download and install the gnuplot, you need to download Read Line lib for gnuplot. Perform the following to install read line lib:

  1. Download the latest read line lib source from here.
  2. Unzip the downloaded file, and copy the file to the location you want to install (i.e.  /user/your_acct/local).
  3. go to shlib subfolder, and open Makefile. Search -dynamic and change it to -dynamiclib. You may find an error saying: use dynamiclib instead of dynamic
  4. Go to the directory and run the following command.


make install

Now, you can install gnuplot. Perform the following steps:

  1. Download the latest gnuplot source packages from here.
  2. Unzip it, and go to that working directory.
  3. And, run the following for the installation


make install

That’s all. Now you can type, gnuplot and start using it 🙂

Special thanks to Bhou for your helpful post regarding gnuplot installation.

Adding a standard user to /etc/sudoers in Mac OS X

February 10, 2013 2 comments

If you want to use sudo command for a standard user account, then you need to add this account to /etc/sudoers file. Use the following steps to add your desired user account to /etc/sudoers file:

  • login as administration : i.e.   su – adminuser
  • type sudo visudo
  • Find out the following

# User privilege specification
root ALL=(ALL) ALL
%admin ALL=(ALL) ALL

  • Add your user account below “root ALL=(ALL) ALL”.  For example:

# User privilege specification
root ALL=(ALL) ALL
yourusername ALL=(ALL) ALL
%admin ALL=(ALL) ALL

  • Save your file (:wq), and now you will be able to use sudo command for your username.