# ROOT 5.28/00b build problems on Ubuntu 11.04

**URL:** <https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203>\
**Category:** ROOT\
**Created:** [April 5, 2011, 6:48pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203 "2011-04-05T18:48:39Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![rikmer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/e9a140/32.png) [@rikmer](https://root-forum.cern.ch/u/rikmer)\
**Post date:** [April 5, 2011, 6:48pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/1 "2011-04-05T18:48:39Z")

</div>

Hey,

I have some problems building ROOT on Ubuntu 11.04. Configuration with

```auto

```

worked fine.  
Also `make` showed no problems.  
But when I try to do `sudo make install` there is an error at the end.

`Creating executable ../../bin/xrdadler32
g++ -D_ALL_SOURCE -D_REENTRANT -D_GNU_SOURCE -fPIC -rdynamic -Wall -Wno-deprecated -D __linux__ -m32 -O2 ../../obj/Xrdadler32.o ../../lib/libXrdPosix.a ../../lib/libXrdClient.a -L../../lib -lXrdNet -lXrdOuc -lXrdNetUtil -lXrdSys -lnsl -lrt -ldl -lc -o ../../bin/xrdadler32
../../obj/Xrdadler32.o: In function `main':
/home/adonai/Downloads/root/net/xrootd/src/xrootd/src/XrdApps/Xrdadler32.cc:176: undefined reference to `adler32'
/home/adonai/Downloads/root/net/xrootd/src/xrootd/src/XrdApps/Xrdadler32.cc:218: undefined reference to `adler32'
/home/adonai/Downloads/root/net/xrootd/src/xrootd/src/XrdApps/Xrdadler32.cc:255: undefined reference to `adler32'
collect2: ld returned 1 exit status
make[5]: *** [../../bin/xrdadler32] Error 1
make[4]: *** [Linuxall] Error 2
make[3]: *** [all] Error 2
make[2]: *** [XrdApps] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/adonai/Downloads/root/net/xrootd/src/xrootd'
*** Error condition reported by make (rc = 2):
make: *** [net/xrootd/src/xrootd/LastBuild.d] Error 1`

Any ideas? I found some reference that it could be a problem with ncurses xrootd.

Any help is much appreciated.

BR

---

<div class="post-metadata">

**Author:** ![bureau](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@bureau](https://root-forum.cern.ch/u/bureau)\
**Post date:** [April 9, 2011, 7:29pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/2 "2011-04-09T19:29:49Z")

</div>

Same problem

---

<div class="post-metadata">

**Author:** ![rikmer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/e9a140/32.png) [@rikmer](https://root-forum.cern.ch/u/rikmer)\
**Post date:** [April 12, 2011, 1:15pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/3 "2011-04-12T13:15:43Z")

</div>

Did it!  
Just do

```auto

```

and it will compile.  
The problem was that also xrootd didn’t know where to search for the libraries.

BR

---

<div class="post-metadata">

**Author:** ![rdm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rdm/32/11082_2.png) [@rdm](https://root-forum.cern.ch/u/rdm)\
**Post date:** [April 29, 2011, 4:00pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/4 "2011-04-29T16:00:00Z")

</div>

This has been fixed in the v5-29-02 dev release and in the trunk of the v5-28-00-patches branch.

Cheers, Fons.

---

<div class="post-metadata">

**Author:** ![Bahman](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@Bahman](https://root-forum.cern.ch/u/Bahman)\
**Post date:** [May 6, 2011, 8:12pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/5 "2011-05-06T20:12:39Z")

</div>

Hi everybody,

I get the following error:

/home/dav/Downloads/root/proof/proof/src/TDSet.cxx: In member function ‘void TDSet::Validate()’:  
/home/dav/Downloads/root/proof/proof/src/TDSet.cxx:1531:1: internal compiler error: in redirect\_jump, at jump.c:1443  
Please submit a full bug report,

Best wishes,  
Bahman.

---

<div class="post-metadata">

**Author:** ![Bahman](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@Bahman](https://root-forum.cern.ch/u/Bahman)\
**Post date:** [May 6, 2011, 8:31pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/6 "2011-05-06T20:31:37Z")

</div>

I am using v5-29-02 and I am running Ubuntu 11.04.

---

<div class="post-metadata">

**Author:** ![rdm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rdm/32/11082_2.png) [@rdm](https://root-forum.cern.ch/u/rdm)\
**Post date:** [May 6, 2011, 10:43pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/7 "2011-05-06T22:43:37Z")

</div>

This has also been fixed in the trunk and patches branch. The issue is the -O2 flag, replace it with -O and it will go (as is done in the build system now.

---

<div class="post-metadata">

**Author:** ![Bahman](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@Bahman](https://root-forum.cern.ch/u/Bahman)\
**Post date:** [May 6, 2011, 11:08pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/8 "2011-05-06T23:08:40Z")

</div>

thanks.

---

<div class="post-metadata">

**Author:** ![kkawade](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/k/edb3f5/32.png) [@kkawade](https://root-forum.cern.ch/u/kkawade)\
**Post date:** [May 18, 2011, 7:50am UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/9 "2011-05-18T07:50:24Z")

</div>

I also have same problem.  
I’m using v5-29-02 on Ubuntu 11.04(AMD64).

But I replaced -O2 -\> -O in the file config/Makefile.linux8664gcc.

I can compiled!  
Thanks

---

<div class="post-metadata">

**Author:** ![tm1729](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tm1729/32/11251_2.png) [@tm1729](https://root-forum.cern.ch/u/tm1729)\
**Post date:** [May 28, 2011, 11:55am UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/10 "2011-05-28T11:55:47Z")

</div>

I was following this post ([cometpeak.com/2011/05/building-a … 04-x86\_64/](http://cometpeak.com/2011/05/building-and-installing-root-on-ubuntu-11-04-x86_64/)) and the ROOT website to install ROOT in 11.04 64bit

When I do make, I get the following errors  
Makefile:20: config/Makefile.config: No such file or directory  
Makefile:29: config/Makefile.comp: No such file or directory  
Makefile:40: \*\*\* Please run ./configure first. Stop.

Whats happening?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [June 21, 2011, 3:06am UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/11 "2011-06-21T03:06:02Z")

</div>

Hi,

You probably did not run the ./configure script.

Philippe.

---

<div class="post-metadata">

**Author:** ![jimmycbt](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jimmycbt](https://root-forum.cern.ch/u/jimmycbt)\
**Post date:** [June 23, 2011, 4:34pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/12 "2011-06-23T16:34:09Z")

</div>

i have same problem

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [June 23, 2011, 6:42pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/13 "2011-06-23T18:42:13Z")

</div>

Hi,

Did you run the configure and if so, how (i.e. in which directory and with which arguments)?

Philippe.

---

<div class="post-metadata">

**Author:** ![axl94](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@axl94](https://root-forum.cern.ch/u/axl94)\
**Post date:** [February 18, 2012, 11:27am UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/14 "2012-02-18T11:27:37Z")

</div>

[quote=“tm1729”]I was following this post ([cometpeak.com/2011/05/building-a … 04-x86\_64/](http://cometpeak.com/2011/05/building-and-installing-root-on-ubuntu-11-04-x86_64/)) and the ROOT website to install ROOT in 11.04 64bit

When I do make, I get the following errors  
Makefile:20: config/Makefile.config: No such file or directory  
Makefile:29: config/Makefile.comp: No such file or directory  
Makefile:40: \*\*\* Please run ./configure first. Stop.

Whats happening?

Thanks in advance[/quote]

I have got the same issue.

Before typing make, I perfectly run the ./configure.

I am using a MacOS x64 Lion 10.7.3

If anyone know the solution, it would be of a great help !

Thank you.

NB: this time, it is Root V5.32

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [February 18, 2012, 2:09pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/15 "2012-02-18T14:09:54Z")

</div>

Hi,

What was the output of ./configure ? What does “ls -l config/Makefile.config bin/” output?

Philippe.

---

<div class="post-metadata">

**Author:** ![axl94](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@axl94](https://root-forum.cern.ch/u/axl94)\
**Post date:** [February 18, 2012, 4:26pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/16 "2012-02-18T16:26:26Z")

</div>

Hi,

here is the output of ` ./configure --with-f77=/usr/local/bin/gfortran`

`
Checking for source directory ... /opt/local/root_v5-32-00
Configuring for macosx64
Checking for GNU Make version >= 3.80 ... ok
Checking for C compiler ... clang
Checking for C++ compiler ... clang++
Checking for linker (LD) ... clang++
Checking for F77 compiler ... /usr/local/bin/gfortran
Checking for libX11 ... /opt/local/lib
Checking for X11/Xlib.h ... /opt/local/include
Checking for X11/xpm.h ... /usr/include
Checking for X11/Xft/Xft.h ... /usr/include
Checking for X11/extensions/shape.h ... /opt/local/include
Checking for libXpm ... /usr/X11R6/lib
Checking for libXft ... /usr/X11R6/lib
configure: libXft not in same directory as libX11
For consistency they should be in the same directory`

I hope this would help.

There is no config file created or the /bin folder. (when I type “ls -l config/Makefile.config bin/”):

`ls: bin/: No such file or directory
ls: config/Makefile.config: No such file or directory`

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [February 18, 2012, 7:08pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/17 "2012-02-18T19:08:30Z")

</div>

Hi,

The core (fatal) problem is:`configure: libXft not in same directory as libX11
For consistency they should be in the same directory`You have `Checking for libX11 ... /opt/local/lib
`but`Checking for libXft ... /usr/X11R6/lib
`. Configure assumes that they are incompatible (and usually /usr/X11R6/lib also contains libX11 so picking and choosing the right directory for libXft and for libX11 is tricky). Once you resolved this issue, the configure should work correctly.

Cheers,  
Philippe.

---

<div class="post-metadata">

**Author:** ![apeiro](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/apeiro/32/23696_2.png) [@apeiro](https://root-forum.cern.ch/u/apeiro)\
**Post date:** [November 4, 2013, 6:21pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/18 "2013-11-04T18:21:49Z")

</div>

Hi,

I have the same problem but I don’t know how can I solve this problem of directories. Do you have a solution ?  
Thx

---

<div class="post-metadata">

**Author:** ![StefanoLodo](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@StefanoLodo](https://root-forum.cern.ch/u/StefanoLodo)\
**Post date:** [January 24, 2014, 5:09pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/19 "2014-01-24T17:09:29Z")

</div>

Hi,

the same here! ☹ can you help us please?  
Thanks!

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [March 27, 2014, 8:26pm UTC](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/20 "2014-03-27T20:26:03Z")

</div>

Hi,

Do you still have this problem with v5.34/18?

Philippe.
