broke MCC installing shotwell from cauldron

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

broke MCC installing shotwell from cauldron

Postby zeke » Jan 14th, '12, 03:16

I tried to upgrade to shotwell v0.12. I added only the core cauldron repo, and disabled updates for that repo.
I installed shotwell and dependencies, and that seemed to go ok, though rpmdrake and glibc were updated during the process.

I restarted, and now if I run shotwell I get this:

$ shotwell
Gtk-Message: Failed to load module "canberra-gtk-module"
shotwell: symbol lookup error: /usr/lib/libgtk-3.so.0: undefined symbol: atk_window_get_type


So I thought I needed to install canberra-gtk,
but if I try to run mcc, I get this:
$ mcc
/usr/bin/perl: symbol lookup error: /usr/lib/libDrakX/auto/c/stuff/stuff.so: undefined symbol: Perl_Gthr_key_ptr

What can I do to fix or revert?
zeke
 
Posts: 107
Joined: Jun 14th, '11, 17:42

Re: broke MCC installing shotwell from cauldron

Postby djennings » Jan 14th, '12, 14:48

Well you know what they say -
" If your Linux is not broken you are not trying hard enough"

You can recover but it may take a while -
If you take a look at /var/log/explanations you will see all the packages you upgraded to Cauldron

Starting from the most recently installed revert them to Mageia 1 using the command
Code: Select all
rpm -Uvh --oldpackage --nodeps ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/1/i586/media/core/release/full_package_name.mga1.i586.rpm

(adjust the URL if you are using x86_64, and also check in the 'updates' repository to see if you should be using a package from there)
Try the command without the --nodeps switch first. I do not like using nodeps other than as a last resort.

As for shotwell you could get it for Mageia 1 if you rebuild the srpm package from Cauldron for Mageia 1. Rebuilding srpms is not that hard. There is documentation here
https://wiki.mageia.org/en/Packagers_RPM_tutorial
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: broke MCC installing shotwell from cauldron

Postby zeke » Jan 14th, '12, 17:06

When I look at explanations, the last entry occurred several hours before I did the install I mention in the 1st post. (Which I did at about 18:30). But, there is an error that occurs every time it looks for updates...This same Perl error recurs every time the script runs. This is certainly related, as the error I get when I try to run MCC has something to do with Perl.

Jan 13 17:05:07 localhost mgaapplet[2154]: running: urpmi.update Tainted Backports Testing
Jan 13 17:05:10 localhost mgaapplet[2154]: mgaapplet check crashed: Can't locate urpm/mirrors.pm in @INC (@INC contains: /usr/lib/libDrakX /usr/lib/libDrakX/drakfirsttime /usr/lib/perl5/site_perl/5.12.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.12.3 /usr/lib/perl5/vendor_perl/5.12.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.12.3 /usr/lib/perl5/5.12.3/i386-linux-thread-multi /usr/lib/perl5/5.12.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.12.2 /usr/lib/perl5/vendor_perl/5.12.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/vendor_perl/5.12.3/urpm/media.pm line 2010.#012
Jan 13 17:53:36 localhost drakconf.real[23379]: modified file /etc/mcc.conf
Jan 13 17:54:57 localhost mgaapplet[2154]: Received SIGHUP (probably an upgrade has finished), restarting applet.

That is the last entry in explanations....about 1/2 hour before I tried to add cauldron and upgrade shotwell

Also found this bug report for Mandriva:
https://qa.mandriva.com/show_bug.cgi?id=51177

I found the mirrors.pm file and renamed it, but got the same error when starting mcc.
zeke
 
Posts: 107
Joined: Jun 14th, '11, 17:42

Re: broke MCC installing shotwell from cauldron

Postby djennings » Jan 14th, '12, 17:23

/usr/lib/perl5/vendor_perl/5.12.3/urpm/mirrors.pm is in the urpmi package. Is urpmi working at all?

Maybe you should start by checking the correct revisions of urpmi, perl, and perl-URPM are installed.
For Mageia 1 with updates they should be
Code: Select all
# rpm -q urpmi perl-URPM perl
urpmi-6.40-9.mga1
perl-URPM-3.38.1-1.mga1
perl-5.12.3-4.mga1
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: broke MCC installing shotwell from cauldron

Postby zeke » Jan 14th, '12, 17:58

urpmi is working...I was able to remove the Cauldron repo and auto-update from the command line

Looks like a version problem:
# rpm -q urpmi perl-URPM perl
urpmi-6.43-2.mga2
perl-URPM-3.38.5-1.3.mga2
perl-5.14.2-5.mga2

So I suppose I need to follow your instructions above and replace these packages?
zeke
 
Posts: 107
Joined: Jun 14th, '11, 17:42

Re: broke MCC installing shotwell from cauldron

Postby djennings » Jan 14th, '12, 18:28

Yep
Code: Select all
more /var/log/syslog | grep mga2

might help you identify any other packages that need restoring
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: broke MCC installing shotwell from cauldron

Postby zeke » Jan 14th, '12, 19:09

oh boy, there are a lot of them!

Is there no way to just do a batch call to urpmi to replace all those packages with their mga1 versions?
zeke
 
Posts: 107
Joined: Jun 14th, '11, 17:42

Re: broke MCC installing shotwell from cauldron

Postby djennings » Jan 14th, '12, 19:42

Sorry, no.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: broke MCC installing shotwell from cauldron

Postby doktor5000 » Jan 14th, '12, 20:48

It would have been best if you would have asked here before how to _properly_ get a nice, new, bleeding edge shotwell.
No i'd just recommend reinstalling keeping your /home as that would be the most effective and least-time-consuming solution IMHO.
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: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: broke MCC installing shotwell from cauldron

Postby zeke » Jan 15th, '12, 23:25

doktor5000 wrote:It would have been best if you would have asked here before how to _properly_ get a nice, new, bleeding edge shotwell.
No i'd just recommend reinstalling keeping your /home as that would be the most effective and least-time-consuming solution IMHO.



Ok, that was an annoying way to spend the morning :roll: .

Now can someone please help me to install shotwell? I really just need any stable version >=0.9. (when shutterfly was incorporated).

Thanks!
zeke
 
Posts: 107
Joined: Jun 14th, '11, 17:42

Re: broke MCC installing shotwell from cauldron

Postby djennings » Jan 16th, '12, 00:30

Is x86_64 OK for you?
http://dl.dropbox.com/u/285824/shotwell-0.11.6-1dj1.x86_64.rpm

The version in Cauldron is too new for Mageia 1 (It requires gtk3.0) so I compiled the latest stable version 0.11.6 for you

Personally I prefer digikam.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: broke MCC installing shotwell from cauldron

Postby djennings » Jan 16th, '12, 01:09

If you are wondering how I made that rpm, or would like to make an i586 version for yourself the procedure was this :-
1/ Read the documentation at https://wiki.mageia.org/en/Packagers_RPM_tutorial and set up the build environment as instructed.

2/ Download the shotwell.srpm file from Cauldron ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia/distrib/cauldron/SRPMS/core/release/shotwell-0.12.0-0.git20111104.1.mga2.src.rpm Install it with the command
Code: Select all
rpm -ivh shotwell-0.12.0-0.git20111104.1.mga2.src.rpm
as your normal user NOT root. Now if you look in ~/rpm/SPECS you will find the file shotwell.spec which you must adapt in order to build version 0.11.6. Here is a spec file I have already adapted
http://dl.dropbox.com/u/285824/shotwell.spec

3/ Download the shotwell source tarball http://yorba.org/download/shotwell/0.11 ... .6.tar.bz2 and put it into ~/rpm/SOURCES

4/ cd to the directory ~/rpm/SPECS and run as your normal user.
Code: Select all
rpmbuild -ba shotwell.spec

If you are VERY lucky it will compile. More likely it will halt saying there are missing packages.

5/ This is where it gets a bit tricky. The package names it asks for are not the same package names on your system. You have to be a bit smart and work out which package is being requested. In most cases it will be asking for development libraries. These are packages that start with 'lib' and end in 'devel' The bit in the middle is likely to be similar to but not necessarily identical to the error message. Use the command 'urpmq -a fragment of text' to work it out.

So for example the error message is
Code: Select all
pkgconfig(gexiv2)
I use urpmq like this
Code: Select all
# urpmq -a gexiv
lib64gexiv2-devel
lib64gexiv2_0
libgexiv2-devel
libgexiv2_0

So if building for i586 I install libgexiv2-devel, if building for x86_64 I install lib64gexiv2-devel

and so on. There are two packages you need the spec file will not ask for. You will need to install
libwebkitgtk1.0-devel or lib64webkitgtk1.0-devel
libunique-devel or lib64unique-devel


6/ Once you have all the required dependencies the compile will complete and you will find your brand new rpm in ~/rpm/RPMS Click on it with your file manager to install it.

OK so maybe it is not that easy, but its a great way to learn about Linux.
The alternative to building an rpm is to compile from the tarball directly using .configure, make, install You still need to install the same -devel packages so it is much the same as building an rpm but without the convenience of being able to uninstall it, or to have predefined menu entries.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest