Hershal P
Hershal P

Reputation: 11

how to install libX11 on OSx 10.9?

I am trying to install ROOT (cern.root.ch). When I run ./configure , I get a message that libX11 is missing and must be installed.

I did some research and found that I need to install

  1. ) XQuartz (I already have the latest version.)
  2. ) Command line tools in Xcode.

I tried installing Command Line Tools from apple's developer website. The installation goes through smoothly but how do I know whether it has been installed? I still get libX11 missing error with root's configure command.

I also tried xcode-select --install and it once went through smoothly and then later again gives error saying this package is no longer maintained - or something of that sort.

I understand I may have multiple installations... But I am still facing the problem of not having libX11 and not being able to install ROOT.

Thanks, Hershal.

Upvotes: 0

Views: 8748

Answers (1)

KeepCalmAndCarryOn
KeepCalmAndCarryOn

Reputation: 9075

This link and the one referenced in it suggests you use homebrew (brew) to install it

$ ruby <(curl -fsS https://raw.github.com/mxcl/homebrew/go)
$ brew doctor

Remember to add the Homebrew directory to your PATH by adding the directory (found with brew --prefix) to your .bashrc, .zshrc or whatever shell file you’re using (.bashrc is the OS X default). We’ll also add the XQuartz binaries to the PATH in case anything needs them in the future.

export PATH=/usr/local/bin:/opt/X11/bin:$PATH

Start a new Terminal session to pick up the changes.

Now that Homebrew is installed, we can use it to install the required dependencies. Each may take some time as Homebrew generally compiles from source.

$ brew install gfortran # Fortran compiler
$ brew install python   # Python interpreter
$ brew install pcre     # Regular Expressions library
$ brew install fftw     # Fast Fourier Transforms
$ brew install cmake    # Cross-platform make

install root

$ brew tap homebrew/science
$ brew install --with-cocoa root

You don't say whether you have installed XCode as well as the commandline tools but I think you will need it

Upvotes: 1

Related Questions