Page 1 of 1

[SOLVED] Trouble compiling Gambas 3.5.2 on Mageia 3

PostPosted: Mar 28th, '14, 17:12
by tleedavidson
Hi,

I usually try to work things like this out on my own, but I am stumped with this one.

I followed the instructions at http://gambaswiki.org/wiki/install/mageia for retrieving the development packages needed to compile Gambas3 on Mageia 3.

But then instead of retrieving the Gambas package via SVN, I downloaded the compressed archive file, gambas3-3.5.2.tar.bz2, directly from SourceForge; and of course, extracted it.

./reconf-all seems to go fine.
./configure -C seems to go fine.
make fails with an `ld` error complaining about not finding two
libraries: cblas and atlas.

These two libraries are apparently part of the GNU Scientific Library
Code: Select all
Making all in gb.gsl
make[2]: Entering directory `~/Download/gambas3-3.5.2/gb.gsl'
make  all-recursive
make[3]: Entering directory `~/Download/gambas3-3.5.2/gb.gsl'
Making all in src
make[4]: Entering directory `~/Download/gambas3-3.5.2/gb.gsl/src'
  CCLD     gb.gsl.la
/usr/bin/ld: cannot find -lcblas
/usr/bin/ld: cannot find -latlas
collect2: error: ld returned 1 exit status


A query using ldconfig shows that the libraries are indeed installed.
At least, by their names, they look like the ones needed.

Code: Select all
[root@localhost gambas3-3.5.2]# ldconfig -p |grep cblas
   libptcblas.so.3 (libc6) => /usr/lib/atlas-sse3/libptcblas.so.3
   libgslcblas.so.0 (libc6) => /lib/libgslcblas.so.0
   libgslcblas.so (libc6) => /lib/libgslcblas.so
   libcblas.so.3 (libc6) => /usr/lib/atlas-sse3/libcblas.so.3

[root@localhost gambas3-3.5.2]# ldconfig -p |grep atlas
   libptf77blas.so.3 (libc6) => /usr/lib/atlas-sse3/libptf77blas.so.3
   libptcblas.so.3 (libc6) => /usr/lib/atlas-sse3/libptcblas.so.3
   liblapack.so.3 (libc6) => /usr/lib/atlas-sse3/liblapack.so.3
   libf77blas.so.3 (libc6) => /usr/lib/atlas-sse3/libf77blas.so.3
   libclapack.so.3 (libc6) => /usr/lib/atlas-sse3/libclapack.so.3
   libcblas.so.3 (libc6) => /usr/lib/atlas-sse3/libcblas.so.3
   libatlas.so.3 (libc6) => /usr/lib/atlas-sse3/libatlas.so.3



Why is the linker not finding those libraries? Is the make process
perhaps expecting names in the form of "libcblas.so" without the ".3"
extension? If so, would a symbolic link of that form anywhere in the
'/usr/lib' directory tree suffice?

I thank you for any help.

Lee

Re: Trouble compiling Gambas 3.5.2 on Mageia 3

PostPosted: Mar 28th, '14, 20:33
by doktor5000
tleedavidson wrote:Why is the linker not finding those libraries? Is the make process
perhaps expecting names in the form of "libcblas.so" without the ".3"
extension? If so, would a symbolic link of that form anywhere in the
'/usr/lib' directory tree suffice?

Nope. Seems you have the libraries themselves installed, but not the development headers.

Have a look:

Code: Select all
[doktor5000@Mageia4 ~]$ urpmf 'libcblas.so$'
libatlas-x86_64-devel:/usr/lib64/atlas/libcblas.so
libatlas-sse-devel:/usr/lib/atlas-sse/libcblas.so
libatlas-sse2-devel:/usr/lib/atlas/libcblas.so
libatlas-sse3-devel:/usr/lib/atlas-sse3/libcblas.so
[doktor5000@Mageia4 ~]$ urpmf 'libatlas.so$'
libatlas-x86_64-devel:/usr/lib64/atlas/libatlas.so
libatlas-sse-devel:/usr/lib/atlas-sse/libatlas.so
libatlas-sse2-devel:/usr/lib/atlas/libatlas.so
libatlas-sse3-devel:/usr/lib/atlas-sse3/libatlas.so

Re: Trouble compiling Gambas 3.5.2 on Mageia 3

PostPosted: Mar 29th, '14, 06:21
by tleedavidson
Well that did it. Installing libatlas-sse-devel, libatlas-sse2-devel, and libatlas-sse3-devel solved the problem.

And wow, as many years as I have been using a distro with the urpm? commands (like since Mandrake 8?), and I never knew urpmf existed. :oops:

Thank you, Doktor!

Re: [SOLVED] Trouble compiling Gambas 3.5.2 on Mageia 3

PostPosted: Mar 29th, '14, 12:10
by doktor5000
There's not only urpmf, but also urpmq ;)
Please check our software management MAQeia for more information on software and package management.