kauzlari / sympler

SYMPLER: SYMbolic ParticLE simulatoR
GNU General Public License v3.0
15 stars 15 forks source link

ERROR:configure:AM_PATH_GSL #3

Closed kauzlari closed 11 years ago

kauzlari commented 11 years ago

I have been trying to install it in my Ubuntu 13.04 but I am getting an error when running: $ ./configure --enable-all-static CXXFLAGS=-fopenmp

Printed on the terminal: checking how to hardcode library paths into programs... immediate ./configure: line 15571: syntax error near unexpected token 1.3,' ./configure: line 15571:AM_PATH_GSL(1.3, :, as_fn_error $? "\"-----------> GSL not found but required for sympler\"" "$LINENO" 5)' I have installed the GSL library and the other ones mentioned as pre-requirements. So, I do not understand what the problem could be.

kauzlari commented 11 years ago

if you have installed GSL, this is strange. Is there also a development package that you can install? Something like libgsl-dev? Other ideas:

freddyglima commented 11 years ago

I have started from the beginning in another computer and with the following command:

aclocal

I have received the warnings: configure.in:30: warning: macro AM_PATH_GSL' not found in library configure.in:68: warning: macroAM_PATH_SDL' not found in library

They were gone installing the following (I thought I had installed them before but maybe I was wrong): apt-get install gsl-bin libgsl0-dev apt-get install libsdl-image1.2-dev

Thanks!

kauzlari commented 11 years ago

Great! Could you tell me on which operating system you were successful? Still Ubuntu 13.04?

freddyglima commented 11 years ago

Apparently, I have been getting the same error for both Ubuntu 12.10 and 13.04 when running

make -j6

The errors from Ubuntu 13.04 were:

linked_list_creator.cpp:143:7: error: redeclaration of 'int t' linked_list_creator.cpp:143:7: error: 'int t' previously declared here make[4]: * [libbasic_la-linked_list_creator.lo] Error 1 make[4]: * Waiting for unfinished jobs.... mv -f .deps/libbasic_la-pairdist.Tpo .deps/libbasic_la-pairdist.Plo mv -f .deps/libbasic_la-pair_creator.Tpo .deps/libbasic_la-pair_creator.Plo mv -f .deps/libbasic_la-pair_list.Tpo .deps/libbasic_la-pair_list.Plo mv -f .deps/libbasic_la-pair_particle_scalar.Tpo .deps/libbasic_la-pair_particle_scalar.Plo mv -f .deps/libbasic_la-pair_particle_tensor.Tpo .deps/libbasic_la-pair_particle_tensor.Plo make[4]: Leaving directory /home/lima/Sympler/src/basic/source' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory/home/lima/Sympler/src/basic' make[2]: * [all-recursive] Error 1 make[2]: Leaving directory `/home/lima/Sympler/src' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory`/home/lima/Sympler' make: *\ [all] Error 2

In both versions the error starts with:

linked_list_creator.cpp:143:7: error: redeclaration of 'int t'

kauzlari commented 11 years ago

I uploaded a fix. Try if you can compile the new version. If there are further problems, please send the whole list of commands that you used, from aclocal to make. Ideally with the output that you got. I will close this issue now. So please open a new one for new problems.

freddyglima commented 11 years ago

It seems to be working in Ubuntu 13.04. I will test it in Ubuntu 12.10 later on.

freddyglima commented 11 years ago

I only ran one program from the examples and it works for both 12.10 and 13.04.

kauzlari commented 11 years ago

Great! That's good to know. Thank you.