[mesa-users] Installing MESA in Ubuntu (9.10, 10.04 and 12.04) and Fedora Core 8 without root privileges
Alessandro Patruno
ale.patruno at gmail.com
Sun Jun 3 16:00:39 EDT 2012
Hi all,
I have been trying to install MESA on several Ubuntu systems and I have
collected some experience that I'd like to share with the community.
I have prepared a to-do list that one should follow to install the code
with MESASDK
in Ubuntu (and Fedora 8) in case you don't have root privileges, which is a
rather common situation in some
Universities. I've tried this method in Ubuntu 9.10, 10.04, 12.04 and
Fedora Core 8
and it has always worked.
The only time you need to be root is when installing the packages
libx11-dev, libz-dev and tcsh
(at least in Ubuntu) but then everything can be done without much trouble.
I don' t know whether what I've prepared is the optimal solution, very
likely it is not, so please correct me or make your own
suggestions. I hope this will help even more people to enjoy this beautiful
code !
I assume you've downloaded MESA and the MESASDK version appropriate for
your machine architecture.
1. Install the system packages: libx11-dev, libz-dev and tcsh
You need to have root privileges in this case (and only in this case).
This step is necessary in Ubuntu, I haven't verified it in Fedora Core 8.
In Ubuntu type in a shell:
sudo apt-get install libz-dev libx11-dev tcsh
2. set the following environmental variables ( I assume you use the bash
shell, which
is the default choice in Ubuntu):
export MESASDK_ROOT=/your_path_to_mesasdk/
source $MESASDK_ROOT/bin/mesasdk_init.sh
export OMP_NUM_THREADS=n
(Set n = number of CPUs you want to use)
3. Copy some missing files:
cp -rf /usr/include/x86_64-linux-gnu/*
/your_path_to_mesasdk/lib/gcc/x86_64-pc-linux-gnu/4.7.0/include-fixed/
4. set environmental variable LD_LIBRARY_PATH:
export LD_LIBRARY_PATH=/your_path_to_mesasdk/lib/
5. Go to your mesa directory (NOT mesasdk)
and run ./install
NOTE: You have to re-run point 2 every time you use MESA, but you can avoid
that by including these three lines in
your .bashrc or .profile file in your home. Another option (which is the
one I use) is to prepare a script that you run
every time before running MESA
I hope this helps !
Cheers,
Alessandro Patruno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20120603/ff53f6d7/attachment.html>
More information about the Mesa-users
mailing list