[SOLVED] Compiling gretl gtk+ version problem (2.24 vs 2.14)

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] Compiling gretl gtk+ version problem (2.24 vs 2.14)

Postby jesgar » Jun 17th, '13, 14:19

I have a problem trying to install Gretl from official rpm. It required gtk+ 2.14 at least. But 2.24 is installed on my system :shock: Anyway, installation is aborted :|

Anyone has experience dealing with this matter or with Gretl installation?
Last edited by jesgar on Feb 24th, '14, 11:15, edited 2 times in total.
jesgar
 
Posts: 6
Joined: Mar 29th, '11, 22:30

Re: Mageia3 - GTK+>=2.14.0 (2.24 is installed)

Postby doktor5000 » Jun 17th, '13, 21:05

You want to compile it? Then you need the relevant -devel packages installed. Just did that here, works fine.
Or did you try to install the rpm package which they offer? Then you can't easily "solve" that, as the RPM tags/facilities it requires are arbitrary, you may need to force installation and need to manually care for the correct dependencies being installed.

In any case, please show the output you get when trying to install.
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: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Compiling gretl - gtk+ version problem (2.24 vs. 2.14)

Postby jesgar » Jun 18th, '13, 10:16

This is the output provided by the system when I try to install. It's in Spanish but you can easily understand that the problem is on the GTK 2.14. Parameter --force results in the same trouble.

No se puede instalar el paquete pedido:
gretl-1.9.12-1gtk2.i586 (debido a que no se satisfizo gtk+[>= 2.14.0])
¿Seguir adelante con la instalación? (S/n)
Si bien algunos paquetes podrían haber sido instalados, hubo problemas.
No se puede instalar el paquete pedido:
gretl-1.9.12-1gtk2.i586 (debido a que no se satisfizo gtk+[>= 2.14.0])
¿Seguir adelante con la instalación?


Parameter --alow-nodeps installs the program but result in the following:

instalando /var/cache/urpmi/rpms/libunixODBC2-2.3.1-3.mga3.i586.rpm
gretl-1.9.12-1gtk2.i586.rpm
Falló la instalación:
gtk+ >= 2.14.0 es necesario por gretl-1.9.12-1gtk2.i586
libcrypto.so.0.9.8 es necesario por gretl-1.9.12-1gtk2.i586
libffi.so.5 es necesario por gretl-1.9.12-1gtk2.i586
libpng14.so.14 es necesario por gretl-1.9.12-1gtk2.i586
libssl.so.0.9.8 es necesario por gretl-1.9.12-1gtk2.i586


As result, Gretl is installed but it doesn't work. Maybe I should try to compile :(
jesgar
 
Posts: 6
Joined: Mar 29th, '11, 22:30

Re: Compiling gretl - gtk+ version problem (2.24 vs. 2.14)

Postby doktor5000 » Jun 18th, '13, 20:10

Can you please show the output of
Code: Select all
rpm -qa | grep gretl
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: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Compiling gretl - gtk+ version problem (2.24 vs. 2.14)

Postby srtxg » Jun 19th, '13, 00:37

that package shouldn't require "gtk+"; imho that's a bug of the package (because, for a 2.x version, it should be "gtk+2", but also it shouldn't be required at all; automatic dependencies on librairies is enough)

if you download the package and type the following:
LANGUAGE=C rpm -q --whatprovides $(rpm -qp --requires gretl-1.9.12-1gtk2.i586.rpm) | grep 'no package'
you will get the output of all failed dependencies.

disregard the dependency on libgretl, it is provided by the package itself.
for the others, look at /usr/lib/, you will find same libraries, but with other versions,
run rpm -qf on them to know which package provides them, eg: rpm -qf /usr/lib/libffi.so.6

now, with those package names, you can guess the package names for the wanted libraries.
eg if /usr/lib/libffi.so.6 is provided by libffi6 rpm; then you need to install libffi5 rpm for libffi.so.5
(the reason you should check with rpm -qf is because there isn't always a clear equivalence between
lib and package name)

If those versions libs are not provided in your current distribution; then you can look at the repo for
a previous distrib (download them manually, *DON'T* add a repo of a previous distrib to urpmi, it's not a good idea)
then with all the needed rpms in one place, try installing them: urpmi ./lib*.rpm
if it installs then it's fine; if not, it means there is some crucial element involved, in which case it is not advised to try to force it.

once the libraries installed, try again to install your gretl rpm.
if it only complains about "gtk+" then force it with: rpm --no-deps gretl*.rpm

if install of the compiled rpm doesn't work (or if install works, but not the program);
then you may want to get the src.rpm and compile a binary rpm yourself:
rpm -Uv gretl*.src.rpm
edit /root/rpmbuild/SPECS/gretl.spec and remoe the "Requires: gtk+ >= version" line (or change to gtk+2)
urpmi /root/rpmbuild/SPECS/gretl.spec
rpmbuild -bb /root/rpmbuild/SPECS/gretl.spec

but depending on how carefully written is the spec file it will work or not.
if the spec file lists all the dependencies to *build* the package, it will be easy.
On the other hand, maybe they aren't listed, or use different names...

If there is no rpm specific to "mageia", then look for one for "fedora" before going for a generic one.
srtxg
 
Posts: 21
Joined: Jun 5th, '13, 11:13

Re: Compiling gretl - gtk+ version problem (2.24 vs. 2.14)

Postby srtxg » Jun 19th, '13, 00:55

libffi5 can be installed from Mageia 2 repositories; but libpng14 and libopenssl0_9_8 are not available even on Mageia 1.

You may try to install them from another distribution; do a google search on the lib name and rpm, eg: "libssl.so.0.9.8" and "rpm"; and look at rpmfind (or go directly to rpmfind); try to find them, for mageia, if not for mandriva, if not for fedora.

libssl0_9_8 exist for Mandriva 2011, libpng14 seems to exists only for OpenSuSE.

Ok, I donwloaded them all, then: rpm -iv gretl-1.9.12-1gtk2.i586.rpm lib*rpm
it only complains about "gtk+" (and we saw it is erroneous requirement), nothing else; so use --nodeps:
rpm -iv gretl-1.9.12-1gtk2.i586.rpm lib*rpm --nodeps

it seems to run correctly.

The nice things with versioned shared libs is that you can install different versions alongside, and so provide the needed bits for cases like this one.

(oh, a last thing, ignore also the errors on "rpmlib(somestuff)" when querying dependencies on a foreign rpm; that is, don't ever try to install another librpm on your system. The foreign rpm will either install after all when other dependencies are installed, or is too low level to install that way)
srtxg
 
Posts: 21
Joined: Jun 5th, '13, 11:13

Re: Compiling gretl - gtk+ version problem (2.24 vs. 2.14)

Postby jesgar » Jun 19th, '13, 10:24

No way .. it should be an issue on my installation after following last indications.

/usr/bin/gretl_x11: error while loading shared libraries: libpng14.so.14: cannot open shared object file: No such file or directory
jesgar
 
Posts: 6
Joined: Mar 29th, '11, 22:30

Re: Compiling gretl - gtk+ version problem (2.24 vs. 2.14)

Postby srtxg » Jun 19th, '13, 17:41

have you installed the libpng14 rpm package ? (you need to search for it in rpmfind; I got it from an OpenSuSE one).
here are the 3 rpms I had to install to make it work:

libffi5-3.0.10-1.mga2.i586.rpm (from Mageia 2)
libopenssl0.9.8-0.9.8x-0.1-mdv2011.0.i586.rpm (from Mandriva 2011)
libpng14-14-1.4.9-3.3.1.i586.rpm (from OpenSuSE I don't know which version)

here are the exact commands I used:

Code: Select all
[root@arachan ~]# LANGUAGE=C rpm -q --whatprovides $(rpm -qp --requires gretl-1.9.12-1gtk2.i586.rpm) | grep 'no package'
no package provides gtk+
no package provides >=
no package provides 2.14.0
no package provides libcrypto.so.0.9.8
no package provides libffi.so.5
no package provides libgretl-1.0.so.7
no package provides libpng14.so.14
no package provides libssl.so.0.9.8
no package provides rpmlib(CompressedFileNames)
no package provides <=
no package provides 3.0.4-1
no package provides rpmlib(PayloadFilesHavePrefix)
no package provides <=
no package provides 4.0-1
# (... searched and downloaded from rpmfind the packages providing  those lib*.so.* )
[root@arachan ~]# ls lib*.rpm
libffi5-3.0.10-1.mga2.i586.rpm  libopenssl0.9.8-0.9.8x-0.1-mdv2011.0.i586.rpm  libpng14-14-1.4.9-3.3.1.i586.rpm
[root@arachan ~]# rpm -iv lib*.rpm
attention : libopenssl0.9.8-0.9.8x-0.1-mdv2011.0.i586.rpm: Entête V3 DSA/SHA1 Signature, clé ID 26752624: NOKEY
attention : libpng14-14-1.4.9-3.3.1.i586.rpm: Entête V3 RSA/SHA256 Signature, clé ID 3dbdc284: NOKEY
Preparing packages...
libpng14-14-1.4.9-3.3.1.i586
libopenssl0.9.8-0.9.8x-0.1.i586
libffi5-3.0.10-1.mga2.i586
[root@arachan ~]# rpm -iv gretl-1.9.12-1gtk2.i586.rpm
erreur : Dépendances requises:
   gtk+ >= 2.14.0 est nécessaire pour gretl-1.9.12-1gtk2.i586
(it complains *ONLY* about "gtk+", so it is safe to force it:)
[root@arachan ~]# rpm -iv gretl-1.9.12-1gtk2.i586.rpm --nodeps
Preparing packages...
gretl-1.9.12-1gtk2.i586

srtxg
 
Posts: 21
Joined: Jun 5th, '13, 11:13

Re: Compiling gretl - gtk+ version problem (2.24 vs. 2.14)

Postby jesgar » Jun 21st, '13, 10:54

It was my fault, I was using the wrong version of libpng14.so.14 (a devel version).
Now I have the cited packages, but this is my output:

[root@conta056 lib]# ls lib*.rpm
libffi5-3.0.10-1.mga2.i586.rpm libpng14-14-1.4.9-3.3.1.i586.rpm
libopenssl0.9.8-0.9.8x-0.1-mdv2011.0.i586.rpm
[root@conta056 lib]# rpm -iv lib*.rpm
advertencia:libopenssl0.9.8-0.9.8x-0.1-mdv2011.0.i586.rpm: EncabezadoV3 DSA/SHA1 Signature, ID de clave 26752624: NOKEY
advertencia:libpng14-14-1.4.9-3.3.1.i586.rpm: EncabezadoV3 RSA/SHA256 Signature, ID de clave 3dbdc284: NOKEY
Preparando paquetes...
el paquete libopenssl0.9.8-0.9.8x-0.1.i586 ya está instalado
el paquete libffi5-3.0.10-1.mga2.i586 ya está instalado
[root@conta056 lib]# rpm -iv gretl-1.9.12-1gtk2.i586.rpm
error: Error de dependencias:
gtk+ >= 2.14.0 es necesario por gretl-1.9.12-1gtk2.i586
libodbc.so.2 es necesario por gretl-1.9.12-1gtk2.i586
libpng14.so.14 es necesario por gretl-1.9.12-1gtk2.i586


Rpm complains about more dependencies than gtk even though my output is the same as yours :?:
jesgar
 
Posts: 6
Joined: Mar 29th, '11, 22:30

Re: Compiling gretl - gtk+ version problem (2.24 vs. 2.14)

Postby srtxg » Jun 21st, '13, 15:34

the install of libpng14 fails because you try to install it at the same time as other rpms that are already isnstalled (so the whole transaction fails).
do only: rpmi -iv libpng14*.rpm
and you need also to install the rpm package providing libodbc.so.2 (it is libunixODBC2, try "urpmi libunixODBC2")
srtxg
 
Posts: 21
Joined: Jun 5th, '13, 11:13

Re: Compiling gretl - gtk+ version problem (2.24 vs. 2.14)

Postby jesgar » Jun 25th, '13, 12:48

It has worked :) Thanks for your help doktor5000 & srtxg!
jesgar
 
Posts: 6
Joined: Mar 29th, '11, 22:30

Re: Compiling gretl - gtk+ version problem (2.24 vs. 2.14)

Postby doktor5000 » Jun 25th, '13, 21:07

Please mark the thread accordingly by editing the topic of the first post and prefix it by [SOLVED], thanks
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: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Advanced support

Who is online

Users browsing this forum: Google [Bot] and 1 guest