Re: Problems with installation of Gtk2 on SUSE 9.1

On Sep 29, 2005, at 3:49 PM, Pih Lung Pang wrote:

On Wed, 2005-09-28 at 19:33, muppet wrote:

On Sep 28, 2005, at 8:39 PM, Pih Lung Pang wrote:

I then wanted to install the Gtk2-Perl package from
and I found binary files for fedora(fc4.rpm) and redhat(rh8/9.rpm),
not for suse. Their was a source src.rpm, is that for all

The source rpm is made directly with our own spec files.  We know
that it works for RH8 through FC4.  You can try it on SUSE if you
like; let us know what you find.

I would like to if I'm sure how to do it!
After installation of Gtk2-1.100 from source,
I updated the rpm database, using #SuSEconfig.

I expected to see that packaget using  rpm -qa |grep [gG]tk.

Installing from source completely bypasses your packaging mechanism. So, if you did this:

  # rpm -i perl-Gtk2-1.100.src.rpm
  # cd /whereever/that/went/Gtk2-1.100/
  # perl Makefile.PL
  # make install

then you merely dropped a bunch of files into your filesystem without any record of how to get rid of them.

To use a source rpm effectively, you want to do this:

   # rpmbuild --rebuild perl-Gtk2-1.100.src.rpm
# rpm -Uvh /wherever/your/rpms/are/built/RPMS/yourarch/perl- Gtk2-1.100-1.yourarch.rpm

Note: this is not a vendor RPM, so we install to site_perl rather than vendor_perl. This is one reason some distros repackage gtk2-perl.

#rpm -evf Gtk2-1.100
error: package Gtk2-1.100 is not installed

It's not there.

The RPM's name is "perl-Gtk2", since the convention for RPM naming is to prefix perl modules with "perl-".

How can I uninstall Gtk2-1.100?
Before I test rpm -ivf perl-Gtk2-1.100-1.src.rpm!

**** I'm assuming you haven't installed any other modules in the Gtk2 or Gtk2::Ex namespaces!!! These instructions will delete them! ****

First, find where it was installed.  For example, on my machine:

  homie:~$ locate

Quite obviously, i have several source trees lying around, but the installed version is in /usr/lib/perl5/site_perl/5.8.3/i386-linux- thread-multi/ .

Find out where perl keeps its library:

  $ perl -V:prefix

This means the library is in /usr/perl5/lib.

  $ find /usr/lib/perl5 -name "Gtk2*"
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/Gtk2/ /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/auto/Gtk2/

The manpages are stored with your system's manpages, and are a little easier to dig up:

   $ ls /usr/share/man/man3/Gtk2*
   [tons and tons of files]

Just delete these and you're clean:

  $ su
# rm -rf /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/ auto/Gtk2
  # rm -rf /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/Gtk2
# rm -f /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi/
  # rm -f /usr/share/man/man3/Gtk2*

t/GtkPaned...................ok 65/59# Looks like you planned 59 tests
but ran 6 extra.

This test is set up as TODO because the sizing is dependent upon window managers playing nicely. The *number* of tests should be constant, though. Something's up.

"that's it! you're a genius!" "yes. that's what i think. do you think i deserve a raise?"
    - dialogue from 'Godzilla versus Mothra', 1964

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]