I tried to compile and install cern root 6.06.08 on elementary os loki 64bit, but only get errors. The last few lines with the errors are lib/libAfterImage.a(export.o): In function `asim_png_write_data':export.c:(.text+0xa1): undefined reference to `png_get_io_ptr'lib/libAfterImage.a(export.o): In function `ASImage2png_int':export.c:(.text+0x17d): undefined reference to `png_create_write_struct'export.c:(.text+0x18f): undefined reference to `png_create_info_struct'export.c:(.text+0x23b): undefined reference to `png_init_io'export.c:(.text+0x26b): undefined reference to `png_set_compression_level'export.c:(.text+0x2b2): undefined reference to `png_set_IHDR'export.c:(.text+0x322): undefined reference to `png_set_bKGD'export.c:(.text+0x331): undefined reference to `png_write_info'export.c:(.text+0x443): undefined reference to `png_write_rows'export.c:(.text+0x47e): undefined reference to `png_set_write_fn'export.c:(.text+0x513): undefined reference to `png_write_end'export.c:(.text+0x522): undefined reference to `png_destroy_write_struct'export.c:(.text+0x66a): undefined reference to `png_write_rows'export.c:(.text+0x755): undefined reference to `png_destroy_info_struct'export.c:(.text+0x777): undefined reference to `png_destroy_write_struct'export.c:(.text+0x79a): undefined reference to `png_destroy_write_struct'lib/libAfterImage.a(import.o): In function `asim_png_read_data':import.c:(.text+0x3eb): undefined reference to `png_get_io_ptr'lib/libAfterImage.a(import.o): In function `png2ASImage_int':import.c:(.text+0x32bb): undefined reference to `png_create_read_struct'import.c:(.text+0x32d0): undefined reference to `png_create_info_struct'import.c:(.text+0x3305): undefined reference to `png_destroy_read_struct'import.c:(.text+0x336a): undefined reference to `png_set_read_fn'import.c:(.text+0x337f): undefined reference to `png_read_info'import.c:(.text+0x33c5): undefined reference to `png_get_IHDR'import.c:(.text+0x341d): undefined reference to `png_set_filler'import.c:(.text+0x3442): undefined reference to `png_get_sRGB'import.c:(.text+0x3477): undefined reference to `png_set_gamma'import.c:(.text+0x348c): undefined reference to `png_read_update_info'import.c:(.text+0x34d2): undefined reference to `png_get_IHDR'import.c:(.text+0x3555): undefined reference to `png_get_rowbytes'import.c:(.text+0x35a6): undefined reference to `png_read_image'import.c:(.text+0x37c5): undefined reference to `png_read_end'import.c:(.text+0x3a52): undefined reference to `png_get_gAMA'import.c:(.text+0x3a91): undefined reference to `png_set_gamma'import.c:(.text+0x3aa3): undefined reference to `png_set_expand'import.c:(.text+0x3ac8): undefined reference to `png_get_valid'import.c:(.text+0x3ade): undefined reference to `png_set_expand'import.c:(.text+0x3b1f): undefined reference to `png_set_packing'import.c:(.text+0x3b36): undefined reference to `png_init_io'import.c:(.text+0x3b63): undefined reference to `png_set_gamma'import.c:(.text+0x3b75): undefined reference to `png_set_strip_16'collect2: error: ld returned 1 exit status/usr/local/root/root-6.06.08/graf2d/asimage/Module.mk:225: recipe for target 'lib/libASImage.so' failedmake: *** [lib/libASImage.so] Error 1`Before the compilation I usedsudo ./configure --enable-roofit \--with-x11-libdir=/usr/lib/x86_64-linux-gnu \--with-xpm-libdir=/usr/lib/x86_64-linux-gnu \--with-xft-libdir=/usr/lib/x86_64-linux-gnu \--with-xext-libdir=/usr/lib/x86_64-linux-gnuwithout getting errors, following the instructions on https://askubuntu.com/questions/39363/how-do-i-install-root-cern.When I was using elementary os freya, installation and compilation was fine, but since the new loki it does not work anymore (I also tried to compile root 6.06.06 and with ./configure linuxx8664gcc ..., but was getting the same error).I am not experienced with compilation and errors of that, so I hope, someone can tell me, what is going wrong here and how that problem can be solved. Thanks.
Cern Root 6.06.08 compile error on elementary os loki 64bit
compiling;make;elementary os;configure;cern root