[SOLVED] Trouble compiling Gambas 3.5.2 on Mageia 3

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] Trouble compiling Gambas 3.5.2 on Mageia 3

Postby tleedavidson » Mar 28th, '14, 17:12

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
Last edited by tleedavidson on Mar 29th, '14, 06:22, edited 1 time in total.
Lee
tleedavidson
 
Posts: 54
Joined: Feb 14th, '12, 04:36

Re: Trouble compiling Gambas 3.5.2 on Mageia 3

Postby doktor5000 » Mar 28th, '14, 20:33

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Trouble compiling Gambas 3.5.2 on Mageia 3

Postby tleedavidson » Mar 29th, '14, 06:21

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!
Lee
tleedavidson
 
Posts: 54
Joined: Feb 14th, '12, 04:36

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

Postby doktor5000 » Mar 29th, '14, 12:10

There's not only urpmf, but also urpmq ;)
Please check our software management MAQeia for more information on software and package management.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest