LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-04-2009, 07:24 AM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
libg2c.so.0 in Slackware


Hi Forum

I have installed an app ( compilation is very difficult... the build system is quite awkward... several makefiles, no centralized configure script... ) called Salome-5.1.1 www.salome-platform.org;

It is a Pre/Post-processing application used in engineering of structures.

This is a Free-gpl app that calls for various dependencies, like Python 2.5.x ( which I have downgraged ), libgfortran.so.1, which I enabled with a hackerish trick, like

in /opt/salome, type, ln -s /usr/lib64/libgfortran.so.3 libgfortran.so.1

and creating a launching script in /usr/local/bin like this... :

echo 'export LD_LIBRARY_PATH=/path/to/salome:$LD_LIBRARY_PATH$$. /source/environment/file.sh&&/call/launching/script/file.sh' > /usr/local/bin/salome

After changing exec permissions to this script, to run it as user, the app really starts... but one of its functions, the ability to mesh a solid into finite elements, fails because there is no libg2c.so.0


So I ask you forum, where ( which package or SlackBuild ) will give me libg2c.so.0...?

Do I hav to create a chroot to be able to run this app...?

If so... this is probably too much... :-( I currently run this in CaeLinux/*buntus till 8.10 ( never tried more recent versions ) and Debian Lenny... but most of these distros are "old"...

Is there any possibility of me enabling libg2c.so.0 in Slackware64 13...?

I think that simply throwing a libg2c-so.0 from a Lenny into /opt/Salome in Slackware64 13, and resorting to the LD_LIBRARY_PATH "hackability" wont do... some symbols in libg2c.so.0 from Lenny will be unreferenced in the glibc from Slackware, etc. etc..

Any suggestions here...?


Thanks in advance

BRGDS

Alex
 
Old 12-04-2009, 07:53 AM   #2
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Rep: Reputation: 40
Well here's the first hit that came up after a Google search

http://lists.debian.org/debian-amd64.../msg00650.html
 
1 members found this post helpful.
Old 12-04-2009, 07:58 AM   #3
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
[crazy idea]You can try getting a rpm from rpm.pbone.net and convert it to tgz.[/crazy idea]
 
1 members found this post helpful.
Old 12-04-2009, 08:21 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@ ~sHyLoCk~ : That is in fact the available solution :

http://mirror.centos.org/centos/5.4/os/x86_64/CentOS/
http://mirror.centos.org/centos/5.4/...6-4.x86_64.rpm
> > compat-libf2c-34-3.4.6-4.x86_64.rpm

.. providing /usr/lib64/libg2c.so.0 -> libg2c.so.0.0.0
.. which is the solution I use in Slackware ( but as 32 bit.)

The compat-gcc-34-g77-3.4.6-4.x86_64.rpm
http://mirror.centos.org/centos/5.4/...6-4.x86_64.rpm
can be recommended too, to have a genuine g77.
.....

Last edited by knudfl; 12-04-2009 at 08:28 AM.
 
1 members found this post helpful.
Old 12-04-2009, 08:48 AM   #5
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by Alexvader View Post
So I ask you forum, where ( which package or SlackBuild ) will give me libg2c.so.0?
I know you are using Slackware, and this is from Ubuntu, but it might help:
Code:
[user@machine:~]:apt-cache search libg2c
libg2c0 - Runtime library for GNU Fortran 77 applications
 
1 members found this post helpful.
Old 12-04-2009, 09:17 AM   #6
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi ppl

Thx for your support, one question though... In case i convert the rpm to tgz... ( how do I do it... is there any "alien" slackbuild, or must I extract the object(s) in the rpm and repackage it as *.tar.gz and mv *.tar.gz *.tgz ? ) won't there be confilcts with the rest of the system when accessing this lib, or is this kind of "independent"... ( and can be placed anywhwere provided LD_LIBRARY_PATH "sees" it...?

One other solution... ( pls correct me If I am wrong here... I am still a "tiny geek", not a "REAL GEEK" ... :-D )

Could i grab the Slackbuild of some gcc-3.4.x from previous Slackware versions, rebuild it as 64bits slackware package, and drop it to /usr/local/* ( after remastering the gcc-4.4.x.SlackBuild script )...?

I.E. Should the "whole pack" of gcc-3.x be built and installed to prefix /usr/local, would Slackware applications be able to "see" its libs and compilers without trashing away my whole system...? ( one can always removepkg the thing in case something goes wrong... )


BRGDS

Alex
 
Old 12-04-2009, 09:29 AM   #7
dolphin77
Member
 
Registered: May 2009
Location: Odesa, Ukraine
Distribution: Slackware
Posts: 206

Rep: Reputation: 60
No, you simply run (as root?):
Code:
rpm2tgz nameofpackage.rpm
in return you will get nameofpackage.tgz. Which you better look at first. Something like tar tvf nameofpackage.tgz. If you do not see any danger in it, than installpkg nameofpackage.tgz. I did this for binary Epson TX659 drivers. And it worked.

brgrds,
Vladimir
 
1 members found this post helpful.
Old 12-04-2009, 09:30 AM   #8
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Rep: Reputation: 40
Quote:
Originally Posted by Alexvader View Post
Hi ppl

Thx for your support, one question though... In case i convert the rpm to tgz... ( how do I do it... is there any "alien" slackbuild, or must I extract the object(s) in the rpm and repackage it as *.tar.gz and mv *.tar.gz *.tgz ? ) won't there be confilcts with the rest of the system when accessing this lib, or is this kind of "independent"... ( and can be placed anywhwere provided LD_LIBRARY_PATH "sees" it...?
rpm2tgz is a tool to do that, but be wary of the results, I've never used it and don't trust it. If I understand you correctly, conflicts shouldn't be an issue as long as it was compiled for your architecture.

Quote:
Could i grab the Slackbuild of some gcc-3.4.x from previous Slackware versions, rebuild it as 64bits slackware package, and drop it to /usr/local/* ( after remastering the gcc-4.4.x.SlackBuild script )...?

I.E. Should the "whole pack" of gcc-3.x be built and installed to prefix /usr/local, would Slackware applications be able to "see" its libs and compilers without trashing away my whole system...? ( one can always removepkg the thing in case something goes wrong... )
Yes you could if you wanted. In that case after installing it to /usr/local/, you should adjust your PATH when building certain software so /usr/local/bin/gcc gets called rather than /usr/bin/gcc

edit: Just realized that by default /usr/local/bin occurs first in PATH. So it's the other way around. When building software with the newer version of gcc, you'll want to make sure /usr/bin occurs first

Last edited by voyciz; 12-04-2009 at 09:32 AM.
 
1 members found this post helpful.
Old 12-04-2009, 09:49 AM   #9
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Voycis

Just for curiosity... where ( which file sets the environment variable ) is PATH set up first, besides of .bashrc (.cshrc ) or shell comand...?

BRGDS

Alex
 
Old 12-04-2009, 10:10 AM   #10
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Rep: Reputation: 40
The first config file that bash reads is /etc/profile
 
1 members found this post helpful.
Old 12-04-2009, 11:49 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
Could I grab the Slackbuild of some gcc-3.4.x from previous
Slackware versions, rebuild it as 64bits slackware package,
and drop it to /usr/local/* ( after remastering the
gcc-4.4.x.SlackBuild script )...?
May be have a look at
http://connie.slackware.com/~alien/slackbuilds/
> > gcc-3.4.6 = the last one providing g77 ..
http://connie.slackware.com/~alien/slackbuilds/gcc34/
.. which is installed to /usr/gcc34/
.. and add fortran to the Slackbild configure line :
--enable-languages=c,c++
http://connie.slackware.com/~alien/s...c34.SlackBuild

Installing to /usr/local/ will cause conflicts.
(( /usr/local/gcc34/ could be usable )).
.....
 
Old 12-04-2009, 12:10 PM   #12
voyciz
Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 425

Rep: Reputation: 40
Quote:
Originally Posted by knudfl View Post
Installing to /usr/local/ will cause conflicts.
(( /usr/local/gcc34/ could be usable )).
.....
How come?
 
1 members found this post helpful.
Old 12-04-2009, 01:34 PM   #13
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Use src2pkg to convert rpm packages instead of rpm2tgz -if you must use rpm's at all. src2pkg will check and correct eprms which rpm2tgz will not do. Just call src2pkg like you normally do -substituting the name of the rpm for the regular tarball name:
src2pkg name-of.rpm
 
2 members found this post helpful.
Old 12-04-2009, 05:33 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@ voyciz # 12

Conflicting files : libgcc_s.so.1 , libgcc_s.so

There may be more, and it is for very good reasons,
that the 'Alien Slackbuild' gcc 3.4.6 has a hide away
location in /usr/gcc34/
http://connie.slackware.com/~alien/slackbuilds/gcc34/
.....
 
1 members found this post helpful.
Old 12-04-2009, 05:45 PM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 6
Quote:
won't there be confilcts with the rest of the system when
accessing this lib, or is this kind of "independent"...
No, there are no conflicts. "Compat" packages are meant
to be installed, when the system compiler is also present.

Just like in Debian, where you often can have four
different compilers installed at the same time.
.....
 
1 members found this post helpful.
  


Reply

Tags
libg2c



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libg2c.so.0 dungminh Linux - Software 1 08-31-2009 01:19 AM
libg2c on FC4 and FC5 hhegab Linux - Software 1 04-10-2006 04:39 PM
libg2c.so.0 problem uv2005 Linux - Software 1 01-26-2006 08:10 AM
libg2c.so.0 problem uv2005 Programming 2 01-26-2006 07:43 AM
libg2c.so.0 for suse 9.1 petrin SUSE / openSUSE 2 01-28-2005 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration