Re: Unable to Install ROOT on ubuntu

From: Thiago Tomei <Thiago.Tomei_at_cern.ch>
Date: Mon, 14 Apr 2008 13:29:30 +0200


For this error:

g++ -shared -Wl,-soname,libGX11.so -m32 -O2 -o lib/libGX11.so

x11/src/GX11Gui.o x11/src/Rotated.o x11/src/TGX11.o
x11/src/gifdecode.o x11/src/gifencode.o x11/src/gifquantize.o
x11/src/G__X11.o -lXpm -lXext -lX11 -lXft
/usr/bin/ld: cannot find -lXft
collect2: ld returned 1 exit status
make: *** [lib/libGX11.so] Error 1

the solution is to install libxft-dev package

However, I have a question. Isn't the ./configure script supposed to warn about the lack of needed libraries? It actually says that the lib Xft was not found, but an error message at the end of the output would be nice. ROOT developers, would it be possible to do that?

Regards,
Thiago

On Mon, Apr 14, 2008 at 11:30 AM, Leandro Franco <lfranco_at_cern.ch> wrote:
> Hi... I remember someone asked the same question like a year ago and I went
> through the process of installing it on a completely new Ubuntu machine
> (Feisty Fawn).
>
> This is what I wrote in that e-mail (I hope it helps):
>
>
>
> Open a terminal
>
> Try to install ROOT form cvs as shown in
> http://root.cern.ch/root/Install.html
>
> $cvs -d :pserver:cvs_at_root.cern.ch:/user/cvs login
>
> first problem, cvs is not installed.
>
> We get the message:
> The program 'cvs' can be found in the following packages:
> * cvsnt
> * cvs
> Try: sudo apt-get install <selected package>
> bash: cvs: command not found
>
> so we try:
>
> $sudo apt-get update
> $sudo apt-get install cvs
>
> (it takes like two minutes to perform the installation)
>
> we try the cvs login again
>
> $cvs -d :pserver:cvs_at_root.cern.ch:/user/cvs login
>
> and it works.
>
>
> so now we download the ROOT source:
>
> $cvs -d :pserver:cvs_at_root.cern.ch:/user/cvs co root
>
> after a moment we have a new directory called root
>
> $cd root
>
> and we execute configure
>
> $./configure
>
> the configure script starts and we get the first problem
>
> Checking for libX11 ... no
> configure: libX11 (package x11-devel) MUST be installed
>
> this library is found in the package xorg-dev.. so we try:
>
> $sudo apt-get install xorg-dev
>
> we try configure again and this time it works, now we compile it:
>
> $make
> make: g++: Command not found
>
> as before, we realize we have to install g++ :
>
> $sudo apt-get install g++
>
> then make again:
>
> $make
>
> now we take a break a read our e-mail (and probably the news too since it
> might
> take a while)
>
> after that, you can either install it with
>
> $make install
>
> or run it from the actual directory with
>
> $ source bin/thisroot.sh
> $ root
>
> if you see a splash window with a naked lady then all your work wasn't in
> vain.
>
> Enjoy ROOT.
>
>
>
> Cheers,
> Leo
>
>
>
>
>
>
>
>
>
>
> On Apr 14, 2008, at 7:22 AM, seforo mohlalisi wrote:
>
> Every package I install just solves a small error. Can someone who install
> root on ubuntu before please tell all the necessary packages I need to
> install.
>
> Now the compilation error is:
>
> make: g77: Command not found
> cp reflex/python/genreflex/gccdemangler.py
> lib/python/genreflex/gccdemangler.py
> cp reflex/python/genreflex/gencapa.py lib/python/genreflex/gencapa.py
> cp reflex/python/genreflex/gendict06.py lib/python/genreflex/gendict06.py
> cp reflex/python/genreflex/gendict.py lib/python/genreflex/gendict.py
> cp reflex/python/genreflex/genheader.py lib/python/genreflex/genheader.py
> cp reflex/python/genreflex/genreflex06.py
> lib/python/genreflex/genreflex06.py
> cp reflex/python/genreflex/genreflex.py lib/python/genreflex/genreflex.py
> cp reflex/python/genreflex/genreflex-rootcint.py
> lib/python/genreflex/genreflex-rootcint.py
> cp reflex/python/genreflex/genrootmap.py lib/python/genreflex/genrootmap.py
> cp reflex/python/genreflex/selclass.py lib/python/genreflex/selclass.py
> make: root-config: Command not found
> make: root-config: Command not found
> make: root-config: Command not found
> make: root-config: Command not found
> make: root-config: Command not found
> make: root-config: Command not found
> make: root-config: Command not found
> make: root-config: Command not found
> make: root-config: Command not found
> make: root-config: Command not found
> make: root-config: Command not found
> make: root-config: Command not found
> Makefile.arch:532: *** invalid architecture. Stop.
>
> Regards,
> Seforo Mohlalisi
>
> Cell: +27 79 226 3682
> Emails: seforo_at_gmail.com seforomohlalisi_at_yahoo.co.uk
>
> --- On Sun, 13/4/08, seforo mohlalisi <seforomohlalisi_at_yahoo.co.uk> wrote:
> From: seforo mohlalisi <seforomohlalisi_at_yahoo.co.uk>
> Subject: Re: [ROOT] Unable to Install ROOT on ubuntu
> To: roottalk_at_root.cern.ch
> Date: Sunday, 13 April, 2008, 5:44 PM
>
>
> I have installed libxext-dev. Now I am getting a new error:
>
> g++ -shared -Wl,-soname,libGX11.so -m32 -O2 -o lib/libGX11.so
> x11/src/GX11Gui.o x11/src/Rotated.o x11/src/TGX11.o x11/src/gifdecode.o
> x11/src/gifencode.o x11/src/gifquantize.o x11/src/G__X11.o -lXpm -lXext
> -lX11 -lXft
> /usr/bin/ld: cannot find -lXft
> collect2: ld returned 1 exit status
> make: *** [lib/libGX11.so] Error 1
>
> Regards,
> Seforo Mohlalisi
>
> Cell: +27 79 226 3682
> Emails: seforo_at_gmail.com seforomohlalisi_at_yahoo.co.uk
>
> --- On Sun, 13/4/08, Bertrand Bellenot <bertrand.bellenot_at_cern.ch> wrote:
> From: Bertrand Bellenot <bertrand.bellenot_at_cern.ch>
> Subject: Re: [ROOT] Unable to Install ROOT on ubuntu
> To: seforomohlalisi_at_yahoo.co.uk, roottalk_at_root.cern.ch
> Date: Sunday, 13 April, 2008, 4:41 PM
>
>
> Hello,
>
> You have to install libext-dev package too.
>
> Cheers,
> Bertrand.
>
> ----- Original Message -----
> From: seforo mohlalisi
> To: roottalk_at_root.cern.ch
> Sent: Sunday, April 13, 2008 3:29 PM
> Subject: Re: [ROOT] Unable to Install ROOT on ubuntu
>
> Hello,
>
> I am able to compile c++ programs, I installed a compiler sometime ago. I
> have also just installed libX11. Now I am getting this error:
>
> g++ -O2 -pipe -m32 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread
> -o x11/src/GX11Gui.o -c x11/src/GX11Gui.cxx
> x11/src/GX11Gui.cxx:41:34: error: X11/extensions/shape.h: No such file or
> directory
> x11/src/GX11Gui.cxx: In member function 'virtual void
> TGX11::ShapeCombineMask(Window_t, Int_t, Int_t, Pixmap_t)':
> x11/src/GX11Gui.cxx:2642: error: 'ShapeBounding' was not declared in this
> scope
> x11/src/GX11Gui.cxx:2643: error: 'ShapeSet' was not declared in this scope
> x11/src/GX11Gui.cxx:2643: error: 'XShapeCombineMask' was not declared in
> this scop
> make: *** [x11/src/GX11Gui.o] Error 1
>
> Regards,
> Seforo Mohlalisi
>
> Cell: +27 79 226 3682
> Emails: seforo_at_gmail.com seforomohlalisi_at_yahoo.co.uk
>
> --- On Sun, 13/4/08, Margar Simonyan <margar.simonyan_at_gmail.com> wrote:
> From: Margar Simonyan <margar.simonyan_at_gmail.com>
> Subject: Re: [ROOT] Unable to Install ROOT on ubuntu
> To: seforomohlalisi_at_yahoo.co.uk
> Cc: roottalk_at_root.cern.ch
> Date: Sunday, 13 April, 2008, 3:43 PM
>
> Hello Seforo
>
> I have installed ROOT on Gusty Gibbon some time ago. For some unknown
> reason a default (fresh) installation of Gutsy Gibbon does not include
> all necessary headers to compile any C++ program. Try first to compile
> C++ "Hello world" program and if does not compile, fix this problem
> first. For that, if I remember correctly, one needs
> libstdc++dev package.
>
> Margar
>
>
> On Sun, Apr 13, 2008 at 11:49 AM, seforo
> mohlalisi
> <seforomohlalisi_at_yahoo.co.uk> wrote:
> > Hello,
> >
> > I get the following compilation error when I install ROOT on Ubuntu 7.10
> > 'Gusty Gibbon':
> >
> > Configuring for linux
> > Checking for libX11 ... no
> > configure: libX11 (package libX11-devel) MUST be installed
> >
> > I realize that libX11 is a fedora core package. Do I need to install first
> > on Ubuntu before install
>
> ROOT
> >
> > Regards,
> > Seforo Mohlalisi
> >
> > Cell: +27 79 226 3682
> > Emails: seforo_at_gmail.com seforomohlalisi_at_yahoo.co.uk
> > ________________________________
> > Yahoo! for Good helps you make a difference
>
> ________________________________
> Yahoo! for Good helps you make a difference
> ________________________________
> Yahoo! for Good helps you make a difference
> ________________________________
> Yahoo! for Good helps you make a difference
>

-- 
 Thiago R. F. P Tomei - http://cern.ch/Thiago.Tomei
 SPRACE - São Paulo Regional Analysis Center
 CERN - European Organization for Nuclear Research
Received on Mon Apr 14 2008 - 13:29:41 CEST

This archive was generated by hypermail 2.2.0 : Tue Apr 15 2008 - 23:50:02 CEST