Jump to content

Need help installing Danpei (GTK+ app)


Crashdamage
 Share

Recommended Posts

Found a very cool little image viewer called Danpei that seems like exactly what I've been looking for. No pre-built rpm available, only danpei-2.9.1-1.src.rpm, so I downloaded that and did:

 

# rpm --rebuild danpei-2.9.1-1.src.rpm

 

which starts and runs along fine 'til near the end, then it exits with this error:

 

checking for gtk-config... no

checking for GTK - version >= 1.2.6... no

*** The gtk-config script installed by GTK could not be found

*** If GTK was installed in PREFIX, make sure PREFIX/bin is in

*** your path, or set the GTK_CONFIG environment variable to the

*** full path to gtk-config.

configure: error: GTK+ >= 1.2.6 not found.

error: Bad exit status from /var/tmp/rpm-tmp.82282 (%build)

 

As a side note, working from the tarball with:

$ ./configure; make

gives the same error.

 

Anyway I know I have GTK libraries installed (Gnome 1.4, Gimp, other GTK stuff) but no package specifically called GTK+*.*.*-*, so to try and satisfy things I download gtk+-1.2.8-6.1mdk.i586.rpm and try this:

 

# rpm -ivh --test gtk+-1.2.8-6.1mdk.i586.rpm

 

but that gives numerous conflicts with libgtk+ such as:

 

file /etc/gtk/gtkrc.bg from install of gtk+-1.2.8-6.1mdk conflicts with file from package libgtk+1.2-1.2.10-25mdk

file /etc/gtk/gtkrc.ja from install of gtk+-1.2.8-6.1mdk conflicts with file from package libgtk+1.2-1.2.10-25mdk (etc,etc...ends with)

file /usr/lib/libgtk-1.2.so.0 from install of gtk+-1.2.8-6.1mdk conflicts with file from package libgtk+1.2-1.2.10-25mdk

 

 

 

At this point I'm kinda stuck 'cause this is getting beyond what limited Linux knowledge my weak mind has soaked up so far. Can anyone tell me how I can install this?

Link to comment
Share on other sites

~$ rpm -ql libgtk+1.2-devel-1.2.10-14mdk | grep grk-config

/usr/bin/gtk-config

/usr/share/doc/libgtk+1.2-devel-1.2.10/gtk-config.txt

/usr/share/man/man1/gtk-config.1.bz2

~$

 

Install the devel version of libgtk+ :D

 

Usually the stuff needed for compiling goes into foo-devel.rpm packages

 

if you are one of those who like urpmi, then run next time:

urpmf missing_file_name

Link to comment
Share on other sites

Thanks, aru!

 

Installed libgtk+1.2-devel-****** and that got me past the GTK+ error, but then I ran into another package error for libgdk-pixbuf, and trying to install that ran into another bunch of dependencies...ARRRGGHH! For some reason I could not get Software Manager to install all the necessary packages, itjust kept giving errors. But everything's ok, 'cause I just found the packages I needed on the MDK CDs, copied them to a working directory and carefully installed each in order manually, first with:

 

rpm -ivh --test <package>

 

then without --test. After that, rpm --rebuild danpei-2.9.1-1.src.rpm completed sucessfully.

 

Problem was, I didn't know what to do next. I thought I would have a finished rpm in my working directory to install, but no. So after some reading of rpm how-tos again, I still didn't get it and I'd been fooling with this for hours by now. Screw it, I just did

 

#make install

 

and all is well. Nothing broke,a nd Danpei runs perfect. Great little app, Danpei, I'm tickle pink. It was worth the effort.

 

But I still wanna know - for the next time I use a .src.rpm - what should I have done after compiling with

$ rpm --rebuild danpei-2.9.1-1.src.rpm?

Link to comment
Share on other sites

First, use

rpmbuild --rebuild

which is the rpm-build pkg.

 

rpm --rebuild can cause probs and is outdated....rpmbuild is the new way :wink:

 

When finished, look up about 10 or so lines for;

Wrote: /usr/src/RPM/RPMS/ixxx/pkg_name-x.x.x-bla-bla

 

Then you can

rpm -ivh /usr/src/RPM/RPMS/ixxx/pkg_name-x.x.x-bla-bla

or

cd /usr/src/RPM/RPMS/ixxx/

rpm -ivh pkg_name-x.x.x-bla-bla

Link to comment
Share on other sites

Ahhh...found it! I was looking in /usr/src/RPM/BUILD. Shoulda had a little more patience and kept looking. Well, I'll have it ready whenever I do a reinstall. I'll use the rpmbuild --rebuild command next time I use a .src.rpm, too.

 

Slowly, slowly, I'm gettin' the hang of some of this stuff...

 

Thanks for the help!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...