Núcleo doesn't compile (Núcleo now compiled, but Metisse doesn't compile)
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Why don't you write a 'libpng12.pc' yourself ?
We are in the extreme simple and basic department here.
It's a ten liner text file.
Editing a copy of your libpng14.pc is also easy :
Edit and rename to libpng12.pc .
Here comes a libpng12.pc example ..
Another easy thing is to make a binary package on a 64 bit
system, and mail it to you. The "nucleo-result-0.7.6.tar.bz2"
is 2.5 MB. But no guaranty, it works. Versions of ffmpeg,
etc. are critical.
.....
I made the package, but I must have done something wrong, because this happens:
Code:
$ pacman -Qs libpng
error: invalid name for database entry 'libpng12pc-1.2.40'
local/libpng 1.4.1-1
A collection of routines used to create PNG format graphics files
local/libpng12 1.2.40-1
A collection of routines used to create PNG format graphics files
And I can't remove either "libpng12pc" or "libpng12pc-1.2.40"! What should I do?
[andrew@mynetbook ~]$ pacman -Ss rpm
extra/rpmextract 1.0-3
Script to convert or extract RPM archives (contains rpm2cpio)
extra/rpmunpack 0-2
This program converts rpm archives to cpio archives for cpio or afio
community/checkinstall 1.6.2-1
spy for 'make install' and build rpm or deb
If using the RPM is a good idea, how do I convert is to pacman's pkg.tar.gz format?
EDIT: I attached a newer version of the .pkg.tar.gz file I made, I don't know if this one will confuse pacman the way the other one did. Please remove the ".txt" at the end before using. (And this is just for you to look inside and extract it, install it at your own risk (it might do what happened in post #36)!)
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Post # 36.
An entry in //pkgconfig/ must have suffix .pc to work.
The idea is to create : libpng12.pc
And then make a link by name : libpng.pc
I.e. : # ln -s libpng12.pc libpng.pc
P.S. : The attached file in post # 38 looks OK.
.....
So I can just have libpng12.pc in my home dir and link libpng.so to it, and then link it back to libpng14.so when Núcleo and Metisse are compiled?
Still, I want to uninstall the faulty package I made. Every time I use pacman for whatever reason is shows the message I highlighted in bold:
Code:
[michael:~]$ pacman -Qs bash
error: invalid name for database entry 'libpng12pc-1.2.40'
local/bash 4.1.002-2 (base)
The GNU Bourne Again shell
I tried "pacman -R libpng12pc-1.2.40" and it didn't remove it.
Note that the package I made that did this is not the one attached to post #36. The one attached to post #36 is a revised version that I thought will work.
[root:michael]# pacman -R libpng12pc
error: invalid name for database entry 'libpng12pc-1.2.40'
libpng12pc not found, searching for group...
error: 'libpng12pc': not found in local db
[root:michael]# pacman -R libpng12pc-1.2.40
error: invalid name for database entry 'libpng12pc-1.2.40'
libpng12pc-1.2.40 not found, searching for group...
error: 'libpng12pc-1.2.40': not found in local db
[root:michael]# pacman -Rns libpng12pc
error: invalid name for database entry 'libpng12pc-1.2.40'
libpng12pc not found, searching for group...
error: 'libpng12pc': not found in local db
[root:michael]# pacman -Rns libpng12pc-1.2.40
error: invalid name for database entry 'libpng12pc-1.2.40'
libpng12pc-1.2.40 not found, searching for group...
error: 'libpng12pc-1.2.40': not found in local db
[root:michael]#
I don't think -R vs. -Rns could have made any difference, because -n means do not save files that are listed in .PKGINFO (which they are not), and -s means remove unneeded dependencies (the only one is libpng12, which is installed explicitly (not as a dependency), so it doesn't matter).
Have a look in /var/lib/pacman/
It is safe to delete everything but local, since those get regenerated after a pacman -Syy.
Don't delete local. Instead, refresh your DB and attempt to remove it once more.
If this fails, look in local for packagename and delete it out of there. Don't delete local!
(if applicable, I'm on a school PC, so I can't test it out on my netbook ) http://bbs.archlinux.org/viewtopic.php?id=34494
Conf File : /etc/pacman.conf
Cache Dirs: /var/cache/pacman/pkg/ # this one may have something too, check it out
Lock File : /var/lib/pacman/db.lck
Log File : /var/log/pacman.log
Hope this helps.
(And don't delete local!! Just the bad entry!! )
{Remember the IgnorePkg possibility too.}
{Have you seen this link yet: http://bbs.archlinux.org/viewtopic.php?id=46084 ?}
Last edited by lupusarcanus; 03-24-2010 at 11:32 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.