# Setting libpng, libjpeg libdir for Ubuntu 11.04

**URL:** <https://root-forum.cern.ch/t/setting-libpng-libjpeg-libdir-for-ubuntu-11-04/12320>\
**Category:** ROOT\
**Created:** [April 29, 2011, 12:52pm UTC](https://root-forum.cern.ch/t/setting-libpng-libjpeg-libdir-for-ubuntu-11-04/12320 "2011-04-29T12:52:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lixo1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/aeb1de/32.png) [@lixo1](https://root-forum.cern.ch/u/lixo1)\
**Post date:** [April 29, 2011, 12:52pm UTC](https://root-forum.cern.ch/t/setting-libpng-libjpeg-libdir-for-ubuntu-11-04/12320/1 "2011-04-29T12:52:10Z")

</div>

Dear rooters,

as described here: [url][ROOT 5.28/00b build problems on Ubuntu 11.04](https://root-forum.cern.ch/t/root-5-28-00b-build-problems-on-ubuntu-11-04/12203/1)  
ubuntu 11.04 has modified their /usr/lib default location.

During the configure, png.h is found in /usr/include, but libpng not. Here the default enabled support:

```auto

```

It compiles, but when I open a TBrowser I’m getting:

`[0] new TBrowser
/opt/root-5.28.00c/bin/root.exe: symbol lookup error: /opt/root-5.28.00c/lib/libASImage.so: undefined symbol: png_create_read_struct`

How can I mediate to that, is there some way to add a default lib location like /usr/lib/x86\_64-linux-gnu?  
I cannot uninstall ubuntu libpng, it will be catastrophic!

Thanks for any kind of help.  
Cheers.

---

<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:06pm UTC](https://root-forum.cern.ch/t/setting-libpng-libjpeg-libdir-for-ubuntu-11-04/12320/2 "2011-04-29T16:06:03Z")

</div>

Hi,

either use the v5-29-02 development release, or the trunk of the v5-28-00-patches trunk (see [root.cern.ch/drupal/content/root … ease-notes](http://root.cern.ch/drupal/content/root-version-v5-28-00-patch-release-notes)) where Ubuntu 11.04 support has been added.

Cheers, Fons.

---

<div class="post-metadata">

**Author:** ![lixo1](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/aeb1de/32.png) [@lixo1](https://root-forum.cern.ch/u/lixo1)\
**Post date:** [April 29, 2011, 4:17pm UTC](https://root-forum.cern.ch/t/setting-libpng-libjpeg-libdir-for-ubuntu-11-04/12320/3 "2011-04-29T16:17:30Z")

</div>

Great Fons, thank you very much!  
Cheers.

---

<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, 10:51pm UTC](https://root-forum.cern.ch/t/setting-libpng-libjpeg-libdir-for-ubuntu-11-04/12320/4 "2011-05-06T22:51:44Z")

</div>

I have the problem with configuration for this subversion root 5.28.00c.

Configuring for linuxx8664gcc  
Checking for GNU Make version \>= 3.80 … ok  
Checking for C compiler … gcc  
Checking for C++ compiler … g++  
Checking for linker (LD) … g++  
Checking for F77 compiler … gfortran  
Checking for libX11 … no  
configure: libX11 MUST be installed  
See [root.cern.ch/drupal/content/build-prerequisites](http://root.cern.ch/drupal/content/build-prerequisites)

Configuration goes smoothly with v5-29-02 but I get an error during the make process:

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,

Thanks,  
Bahman.

---

<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:58pm UTC](https://root-forum.cern.ch/t/setting-libpng-libjpeg-libdir-for-ubuntu-11-04/12320/5 "2011-05-06T22:58:42Z")

</div>

Hi,  
You need the trunk of the patch branch, or wait till tomorrow for version v5-28-00d.

Chees, 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, 11:38pm UTC](https://root-forum.cern.ch/t/setting-libpng-libjpeg-libdir-for-ubuntu-11-04/12320/6 "2011-05-06T23:38:28Z")

</div>

Sure thanks for your attention and time.

---

<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 8, 2011, 10:32pm UTC](https://root-forum.cern.ch/t/setting-libpng-libjpeg-libdir-for-ubuntu-11-04/12320/7 "2011-05-08T22:32:27Z")

</div>

Thanks a lot for the update. Make and install went fine. I however had a error after running root as following:

Couldn’t find font “-adobe-helvetica-medium-r-_-_-10-_-_-_-_-\*-iso8859-1”,  
trying “fixed”. Please fix your system so helvetica can be found,  
this font typically is in the rpm (or pkg equivalent) package  
XFree86-[75,100]dpi-fonts or fonts-xorg-[75,100]dpi.

I follow the post [url]][Adobe helvetica on ubuntu 11.04](https://root-forum.cern.ch/t/adobe-helvetica-on-ubuntu-11-04/12319/1) installing the extra packages, reboot, and make root again but the error still persist. Here is outcome of ps -aef | grep xfs

114 1050 1 0 May07 ? 00:00:00 /usr/bin/xfs -daemon -user debian-xfs -droppriv  
root 1065 1 0 May07 ? 00:00:00 /usr/bin/xfstt --daemon --notcp  
davoudi 4916 1954 0 15:30 pts/0 00:00:00 grep --color=auto xfs

so it seems that sever for fonts is running. Any help or advise.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [May 31, 2011, 3:48pm UTC](https://root-forum.cern.ch/t/setting-libpng-libjpeg-libdir-for-ubuntu-11-04/12320/8 "2011-05-31T15:48:39Z")

</div>

It looks like you are not using the TTF fonts. Aren’t you ?

---

<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:** [June 2, 2011, 6:10am UTC](https://root-forum.cern.ch/t/setting-libpng-libjpeg-libdir-for-ubuntu-11-04/12320/9 "2011-06-02T06:10:41Z")

</div>

To be honest I have tried everything. I desperately need ROOT 🙂. My know knowledge of linux is average. I know how to install a font as I did with helvetica.ttf font. I just don’t know how to make it work. Thanks for your time and help.

---

<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:** [June 2, 2011, 9:00pm UTC](https://root-forum.cern.ch/t/setting-libpng-libjpeg-libdir-for-ubuntu-11-04/12320/10 "2011-06-02T21:00:46Z")

</div>

Wait. Just local compile using commands (Environment driven build)  
export ROOTSYS=/root  
./configure   
export PATH=$ROOTSYS/bin:$PATH  
export LD\_LIBRARY\_PATH=$ROOTSYS/lib:$LD\_LIBRARY\_PATH  
and then  
root  
works well. The problem appears when I try the fixed locations build. Even exporting ROOTSYS, PATh and LD\_LIBRARY\_PATh manually after installation doesn’t help at all (these are set internally during compile?). I stick with what I have right now and thanks for your time.
