I am trying to install FreeSurfer: ftp://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/6.0.0/freesurfer-Linux-centos6_x86_64-stable-pub-v6.0.0.tar.gz
I am following these steps to install FreeSurfer: https://surfer.nmr.mgh.harvard.edu/fswiki/DownloadAndInstall
When I run following commands:
freeview -v
bert/mri/T1.mgz
bert/mri/wm.mgz
bert/mri/brainmask.mgz
bert/mri/aseg.mgz:colormap=lut:opacity=0.2
-f
bert/surf/lh.white:edgecolor=blue
bert/surf/lh.pial:edgecolor=red
bert/surf/rh.white:edgecolor=blue
bert/surf/rh.pial:edgecolor=red
I get this error:
freeview.bin: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
And when I am trying to install this package:
sudo apt-get install libpng12.so.0
I am getting this error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libpng12.0-0:i386
E: Couldn't find any package by glob 'libpng12.0-0'
E: Couldn't find any package by regex 'libpng12.0-0'
I am totally new to Linux, please help!
asked Mar 23, 2017 at 3:23
2
The software you are trying to run requires version 12 of libpng, which is no longer available in Ubuntu 16.10+. The best thing to do would be to install Ubuntu 16.04, or maybe let the developers of the software know about this problem so they can provide a version compatible with Ubuntu 16.10.
answered Mar 23, 2017 at 3:44
fkraiemfkraiem
12.1k4 gold badges32 silver badges38 bronze badges
answered Jun 26, 2018 at 6:21
My attempt to follow other suggestions (notably Scott Stensland’s) on Ubuntu 20.04 failed, with the following output:
user@machine:~$ sudo dpkg -i libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
Selecting previously unselected package libpng12-0:amd64.
(Reading database ... 69136 files and directories currently installed.)
Preparing to unpack libpng12-0_1.2.54-1ubuntu1.1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1.1) ...
dpkg: error processing archive libpng12-0_1.2.54-1ubuntu1.1_amd64.deb (--install):
unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Errors were encountered while processing:
libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
Per Linux Uprising, the previous answers do not work on Ubuntu 19/20 because /lib
is now a symlink to /usr/lib
, and since the libpng12-0
installation tries to link from /lib/x86_64-linux-gnu/libpng12.so.0
to /usr/lib
, the installation will fail.
They offered the following fix, which involves a repacked DEB. With the standard caveats about trusting code from unofficial sources, the following will enable libpng12 to run on Ubuntu 20.
sudo add-apt-repository ppa:linuxuprising/libpng12
sudo apt update
sudo apt install libpng12-0
answered Jan 8, 2021 at 19:29
TomTom
1711 silver badge1 bronze badge
2
answered Jul 27, 2017 at 13:53
2
I was having problems installing SAS on Ubuntu 18.04. Some instructions following will only apply to those installing SAS.
The first problem was that the installation would hang on hot fix W83001. Solution is to move hot fix W83001pt.zip
out of the <depot>/hot_fix
directory so it is not installed.
The second problem was that the following package was needed and not installed by default on Ubuntu: libjpeg.s0.62
. Installation was done as follows:
sudo apt install libjpeg62
The third problem was the missing package discussed on this page, libpng12.so.0
. It was downloaded from this link and installed as follows:
sudo apt install ./libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
After this, I was able to run the SAS software. Thanks everyone for posting the tips.
Simon Sudler
3,5952 gold badges17 silver badges31 bronze badges
answered Nov 6, 2018 at 20:58
Another alternative is to create symbolic links to both PNG and JPEG libraries
sudo ln -s -T /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libjpeg.so.62
sudo ln -s -T /usr/lib/x86_64-linux-gnu/libpng16.so /usr/lib/x86_64-linux-gnu/libpng12.so.0
It will generate some warnings (libpng warning: Application built with libpng-1.2.7 but running with 1.6.28) when running. However, Freeview works ok.
answered Oct 19, 2017 at 18:18
LuchoLucho
111 bronze badge
1
I’m using 16.04 64bit, and the following worked for me.
64bit
sudo apt-get install libpng12-0
32bit
sudo apt-get install libpng12-0:i386
answered May 10, 2021 at 20:40
Seek TruthSeek Truth
4314 silver badges13 bronze badges
You don’t need to install or compile anything. You just need the .so.* files for runtime.
So just grab the libpng12 .deb from the links provided by people above, download the libpng12.deb, uncompress it like an archive (right click and choose extract instead of install with your file application, e.g nautilus if you use the default gnome desktop), go to the ‘data’ subfolder, in it you will find another folder, inside you will find a lib folder. Grab the two .so files (libpng12.so.0.*) and put them somewhere in your LD_LIBRARY_PATH so that your application can find them at run time, that’s it.
e.g create a folder called libpng in your home and start you application with a script like
#!/bin/bash
export LD_LIBRARY_PATH=$HOME/libpng:$LD_LIBRARY_PATH
<command to start your application>
make the script executable, give it a name, say, my_app, put it in your $PATH like $HOME/bin (create it if it doesn’t exist, then logout and login) or /usr/local/bin (this requires sudo) then invoke your application in the terminal by typing my_app or put Exec=my_app in your .desktop file.
answered Jun 18, 2021 at 2:29
You can use:
wget http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
sudo dpkg -i libpng12.deb
Eliah Kagan
115k53 gold badges311 silver badges484 bronze badges
answered Oct 6, 2019 at 21:23
This fix also works for CANView Log Viewer, used by Yacht Devices for configuring their NMEA 2000 marine devices.
I don’t want to turn this thread into an inventory of all the legacy apps using this library, but Yacht Devices hasn’t updated their distribution, and I haven’t found their sources (there are many apps with this name).
answered May 28, 2021 at 17:08
BobHyBobHy
1114 bronze badges
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
maraisr opened this issue
Apr 30, 2017
· 31 comments
Comments
Given this ticket somewhat relates to #76 I decided to re-create becuase we’re now at version 17.04 with still no fix?
Error message:
Module build failed: Error: /home/myApp/node_modules/mozjpeg/vendor/cjpeg:
error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
From what I can see I’d need to contact you guys?
OS: Ubuntu 17.04
Version:: mozjpeg v4.1.1
Package: sudo apt-get install libpng-dev
ran with no errors:
Reading package lists... Done Building dependency tree Reading state information... Done libpng-dev is already the newest version (1.6.28-1). 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Anyone knows a work around?
As you can see, it’s a problem with the dependency (mozjepg) and there is no current fix fo this. imagemin/mozjpeg-bin#18. At mozjepg you can find a possible workaround: mozilla/mozjpeg#255
Closing because this project can’t fix this.
Ah ok, using this as a workaround:
wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb && dpkg -i /tmp/libpng12.deb && rm /tmp/libpng12.deb
imycroft, suryaajha, sebastianripari, arif25169, matheusfrancisco, edison, dk254, aj07mm, meetai, stivencardona, and 10 more reacted with laugh emoji
rabingaire, AndroiableDroid, fqlx, duducosmos, b0ff1n, vucalur, JREAM, idrisjaffer, merianos, rachmadaniHaryono, and 49 more reacted with hooray emoji
JREAM, majamusan, idrisjaffer, merianos, mjhale, rachmadaniHaryono, alexmochu, Brunomm, Taikeur, BillRizer, and 56 more reacted with heart emoji
Another workaround
cd dpkg -i libpng12-0_1.2.50-2+deb8u2_amd64.deb; apt-get install -f
sudo ln -s libpng16.so.16.28.0 libpng12.so.0
what if libpng-dev:amd64 is already installed (debian 9) and still
«/mozjpeg/vendor/cjpeg: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory»?
Same problem on Debian 9.
i recommended
wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
&& sudo dpkg -i /tmp/libpng12.deb
&& rm /tmp/libpng12.deb
andregustavocastro, chiql, IndigoHollow, nrogap, jcaleb4, anonymous348, scarlettekk, and Axliyor reacted with laugh emoji
jelleklaver, chiql, IndigoHollow, nrogap, jcaleb4, anonymous348, scarlettekk, and Axliyor reacted with hooray emoji
DevinNorgarb, williamknn, maotora, chiql, matheusfrancisco, IndigoHollow, nrogap, jcaleb4, david690, anonymous348, and 5 more reacted with heart emoji
Sorry my English… I just installed mozjpeg@5.0.0 package and delete old mozjpeg@4.1.1 from image-webpack-loader node_modules. And it works!
I had the same error message: «. . . /mozjpeg/vendor/cjpeg: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory«
I am on Debian 9.3 with libpng16
Downgrading image-webpack-loader
to v3.6.0
solved it for me:
yarn add image-webpack-loader@^3.6.0
I got passed this on CentOS 7 through a combination of a lot of cursing and yum install libpng12.x86_64 libpng12-devel.x86_64
I didn’t have to remove the newer libpng packages either.
None of the above fixes worked for me.
This one-liner solved it:
echo "deb http://mirrors.kernel.org/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.
alankarglobant, ErwinCraps, and AlekKras reacted with laugh emoji
ahmed-aliraqi, nortsith, AlekKras, ksh5, and manojsinghsatya23 reacted with hooray emoji
ahmed-aliraqi, zedaan, alankarglobant, AlekKras, ksh5, shaohuaXu, prdetective, manojsinghsatya23, Sebastien-Charton, bryan-souza, and neemiasvf reacted with heart emoji
@slamorte Nice one. This fix works great. Thank you
Thanks @slamorte. Your fix worked for me. Cheers !!
echo «deb http://mirrors.kernel.org/ubuntu/ xenial main» | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0
Does this solution work for anyone in sid
? I can’t seem to get it installed due to
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb (--install):
unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
Processing triggers for libc-bin (2.27-6) ...
Errors were encountered while processing:
/var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb
«echo «deb http://mirrors.kernel.org/ubuntu/ xenial main» | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0″
Worked for me.
Ah ok, using this as a workaround:
wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb && dpkg -i /tmp/libpng12.deb && rm /tmp/libpng12.deb
work to me on debian 9.4
None of the above fixes worked for me.
This one-liner solved it:
echo "deb http://mirrors.kernel.org/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.
Worked for me on Ubuntu 18.04.1 LTS which is Hyper-V Win 10 Quick create one.
I needed this because ODOO has issues generating mail/pdf’s at least in the sales module.
Thank you.
Ended up here from Arch ( Manjaro ). This fixed it.
sudo pacman -S libpng12
None of the above fixes worked for me.
This one-liner solved it:
echo "deb http://mirrors.kernel.org/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.Worked for me on Ubuntu 18.04.1 LTS which is Hyper-V Win 10 Quick create one.
I needed this because ODOO has issues generating mail/pdf’s at least in the sales module.
Thank you.
Thank you Erwin, it solved mine
None of the above fixes worked for me.
This one-liner solved it:
echo "deb http://mirrors.kernel.org/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.Worked for me on Ubuntu 18.04.1 LTS which is Hyper-V Win 10 Quick create one.
I needed this because ODOO has issues generating mail/pdf’s at least in the sales module.
Thank you.Thank you Erwin, it solved mine
Thank you as well. Worked for me on Ubuntu 18.04
Recently my deploy process starting throwing errors regarding keys.
This new three-line bash fixes that issue:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5 echo "deb http://mirrors.kernel.org/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0 sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0
If anyone has a better fix, perhaps using a new version of mozjepg, I’d be happier to replace this hacky fix.
None of the above fixes worked for me.
This one-liner solved it:
echo "deb http://mirrors.kernel.org/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.
I tried this one and it worked . Thanks~~~
Getting this error now with node:8 Docker image in a multistage build…
i recommended
wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb && sudo dpkg -i /tmp/libpng12.deb && rm /tmp/libpng12.deb
i try this one and it’s working for me in my ubuntu 18.04, thank you.
finally this help me in kali linux 2020
This new three-line bash fixes that issue:
sudo apt-key adv —keyserver keyserver.ubuntu.com —recv-keys 3B4FE6ACC0B21F32
sudo apt-key adv —keyserver keyserver.ubuntu.com —recv-keys 40976EAF437D05B5
echo «deb http://mirrors.kernel.org/ubuntu/ xenial main» | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0
sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0
None of the above fixes worked for me.
This one-liner solved it:
echo "deb http://mirrors.kernel.org/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.
I got this error:
unable to install new version of ‘/lib/x86_64-linux-gnu/libpng12.so.0’: No such
file or directory
Errors were encountered while processing:
/var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb
Scanning application launchers
Updating active launchers
Done
E: Sub-process /usr/bin/dpkg returned an error code (1)
None of the above fix worked for me, I am using parrot 5.4
ghost
mentioned this issue
Oct 23, 2020
None of the above fixes worked for me.
This one-liner solved it:
echo "deb http://mirrors.kernel.org/ubuntu/ xenial main" | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y --allow-unauthenticated libpng12-0
This installed libpng12 and doesn’t require uninstalling libpng-dev (16.34 as of this comment). The issue appears to reside in a node package or webpack configuration and I wish it could be resolved there. In the meantime loading an old, outdated, buggy revision of libpng allows the build to proceed.
its really awesome>>> Worked for me
sudo apt-key adv —keyserver keyserver.ubuntu.com —recv-keys 3B4FE6ACC0B21F32
sudo apt-key adv —keyserver keyserver.ubuntu.com —recv-keys 40976EAF437D05B5
echo «deb http://mirrors.kernel.org/ubuntu/ xenial main» | sudo tee -a /etc/apt/sources.list && sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0
sudo apt-get update && sudo apt install -y —allow-unauthenticated libpng12-0
unfortunately it fails on ARM (M1)
#9 5.976 Executing: /tmp/apt-key-gpghome.UZHJx72Pfg/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
#9 24.31 gpg: key 3B4FE6ACC0B21F32: public key "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" imported
#9 24.32 gpg: Total number processed: 1
#9 24.32 gpg: imported: 1
#9 24.69 Warning: apt-key output should not be parsed (stdout is not a terminal)
#9 24.71 Executing: /tmp/apt-key-gpghome.PAeVaxx5ot/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
#9 25.80 gpg: key 40976EAF437D05B5: public key "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" imported
#9 25.81 gpg: Total number processed: 1
#9 25.81 gpg: imported: 1
#9 26.18 deb http://mirrors.kernel.org/ubuntu/ xenial main
#9 26.53 Hit:1 http://security.debian.org/debian-security buster/updates InRelease
#9 26.53 Hit:2 http://deb.debian.org/debian buster InRelease
#9 26.54 Hit:3 http://deb.debian.org/debian buster-updates InRelease
#9 30.12 Get:4 http://mirrors.edge.kernel.org/ubuntu xenial InRelease [247 kB]
#9 33.83 Ign:5 http://mirrors.edge.kernel.org/ubuntu xenial/main arm64 Packages
#9 34.50 Ign:5 http://mirrors.edge.kernel.org/ubuntu xenial/main arm64 Packages
#9 38.79 Ign:5 http://mirrors.edge.kernel.org/ubuntu xenial/main arm64 Packages
#9 39.46 Ign:5 http://mirrors.edge.kernel.org/ubuntu xenial/main arm64 Packages
#9 40.04 Ign:5 http://mirrors.edge.kernel.org/ubuntu xenial/main arm64 Packages
#9 40.77 Err:5 http://mirrors.edge.kernel.org/ubuntu xenial/main arm64 Packages
#9 40.77 404 Not Found [IP: 147.75.197.195 80]
#9 40.79 Fetched 247 kB in 15s (16.9 kB/s)
#9 40.79 Reading package lists...
#9 41.15 E: Failed to fetch http://mirrors.edge.kernel.org/ubuntu/dists/xenial/main/binary-arm64/by-hash/SHA256/3148af0f0133dbef92669209f1d85fdd47498ba5005080571bc515027f1a335c 404 Not Found [IP: 147.75.197.195 80]
#9 41.15 E: Some index files failed to download. They have been ignored, or old ones used instead.
It looks like mozjpeg-bin was updated to use libpng 16 from 7.1.0. I guess pinning mozjpg dependency to «^7.1.0» would solve it.
- Печать
Страницы: [1] Вниз
Тема: Вопрос про libpng12.so.0 (Прочитано 19004 раз)
0 Пользователей и 1 Гость просматривают эту тему.
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
qqq
Привет всем!
Имеется проблемка!
Помогите пожалуйста в какую сторону копать!
Установлен свежая xubuntu 18.04 пытаюсь запустить утилиту от касперского в ответ получаю вот такое сообщение error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
Подскажите плиз где ее взять?
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
ARTGALGANO
установить, если нет
sudo apt install libpng12-0
АААА, не пойдет для 18 — нет пакета
« Последнее редактирование: 20 Мая 2018, 22:02:00 от ARTGALGANO »
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
qqq
Нет такого пакета. Установил libpng16-16. Это не помогло.
Где взять этот libpng12 взять?
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
Aleksandru
Intel Core i3-3240 3.40GHz, GeForce GT 1030, MSI H61M-P20, 8GB RAM, KINGSTON SV300S37A240G, Kubuntu 20.04
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
ARTGALGANO
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
qqq
И что же мне делать в этом случае?
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
ARTGALGANO
можно попроботь распаковать дебку
mkdir ~/lib
и назначить переменную
dpkg -x libpng12-0.deb ~/lib/
export LD_LIBRARY_PATH=/home/user/lib/
может будет проще попробовать сделать симлинк с установленной 16
ln -s /usr/lib/x86_64-linux-gnu/libpng16.so.16 /usr/lib/x86_64-linux-gnu/libpng12.so.0
« Последнее редактирование: 20 Мая 2018, 23:16:24 от ARTGALGANO »
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
qqq
Слинковал libpng16.so.16 на libpng12.so.0
в итоге получил вот такую ругань
sudo ./uu-gui.sh
./UpdateUtility-Gui: /usr/lib/i386-linux-gnu/libpng12.so.0: version `PNG12_0′ not found (required by /home/eee/Downloads/UpdateUtility_lin_ru_3.1.0-25/lib/libQtGui.so.4)
Установил пакет libQtGui4 не помогает.
Помогите плиз очень нужно запустить эту хрень
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
andytux
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
ARTGALGANO
а там нет консольного обновлятора?
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
ilya20000
![Оффлайн](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)
Dieul
- Печать
Страницы: [1] Вверх
0
1
установил игру на базе Ку1, при запуске
mist@debian:~/Downloads/nQuake/y$ ./ezquake-linux-x86_64
./ezquake-linux-x86_64: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
ставлю libpng12-0_1.2.50-2+deb8u3_amd64.deb
mist@debian:~/Downloads$ sudo dpkg -i libpng12-0_1.2.50-2+deb8u3_amd64.deb
(Reading database ... 400020 files and directories currently installed.)
Preparing to unpack libpng12-0_1.2.50-2+deb8u3_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.50-2+deb8u3) ...
dpkg: error processing archive libpng12-0_1.2.50-2+deb8u3_amd64.deb (--install):
unable to install new version of '/usr/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
Errors were encountered while processing:
libpng12-0_1.2.50-2+deb8u3_amd64.deb
почему не ставиться libpng12.so.0?
apt install libpng-dev
не помогло
libpng12-dev 1.2.49-4ubuntu1
не ставиться
mist@debian:~/Downloads$ sudo dpkg -i libpng12-dev_1.2.49-4ubuntu1_amd64.deb
Selecting previously unselected package libpng12-dev.
dpkg: regarding libpng12-dev_1.2.49-4ubuntu1_amd64.deb containing libpng12-dev:
libpng12-dev conflicts with libpng-dev
libpng-dev:amd64 (version 1.6.36-6) is present and installed.
dpkg: error processing archive libpng12-dev_1.2.49-4ubuntu1_amd64.deb (--install):
conflicting packages - not installing libpng12-dev
Errors were encountered while processing:
libpng12-dev_1.2.49-4ubuntu1_amd64.deb
собрал, не помогает, https://launchpad.net/debian/+source/libpng/1.2.49-1+deb7u2
mist@debian:~/Downloads/libpng-1.2.49$ sudo make install
make[1]: Entering directory '/home/mist/Downloads/libpng-1.2.49'
test -z "/usr/local/bin" || /usr/bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c libpng12-config '/usr/local/bin'
test -z "/usr/local/lib" || /usr/bin/mkdir -p "/usr/local/lib"
/bin/bash ./libtool --mode=install /usr/bin/install -c libpng12.la libpng.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libpng12.so.0.49.0 /usr/local/lib/libpng12.so.0.49.0
libtool: install: (cd /usr/local/lib && { ln -s -f libpng12.so.0.49.0 libpng12.so.0 || { rm -f libpng12.so.0 && ln -s libpng12.so.0.49.0 libpng12.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libpng12.so.0.49.0 libpng12.so || { rm -f libpng12.so && ln -s libpng12.so.0.49.0 libpng12.so; }; })
libtool: install: /usr/bin/install -c .libs/libpng12.lai /usr/local/lib/libpng12.la
libtool: install: /usr/bin/install -c .libs/libpng.so.3.49.0 /usr/local/lib/libpng.so.3.49.0
libtool: install: (cd /usr/local/lib && { ln -s -f libpng.so.3.49.0 libpng.so.3 || { rm -f libpng.so.3 && ln -s libpng.so.3.49.0 libpng.so.3; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libpng.so.3.49.0 libpng.so || { rm -f libpng.so && ln -s libpng.so.3.49.0 libpng.so; }; })
libtool: install: /usr/bin/install -c .libs/libpng.lai /usr/local/lib/libpng.la
libtool: install: /usr/bin/install -c .libs/libpng12.a /usr/local/lib/libpng12.a
libtool: install: chmod 644 /usr/local/lib/libpng12.a
libtool: install: ranlib /usr/local/lib/libpng12.a
libtool: install: /usr/bin/install -c .libs/libpng.a /usr/local/lib/libpng.a
libtool: install: chmod 644 /usr/local/lib/libpng.a
libtool: install: ranlib /usr/local/lib/libpng.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make install-exec-hook
make[2]: Entering directory '/home/grovekeeper/Downloads/libpng-1.2.49'
cd /usr/local/bin; rm -f libpng-config
cd /usr/local/bin; ln -s libpng12-config libpng-config
+ cd /usr/local/lib
+ for ext in a la so sl dylib
+ rm -f libpng.a
+ test -f libpng12.a
+ ln -s libpng12.a libpng.a
+ for ext in a la so sl dylib
+ rm -f libpng.la
+ test -f libpng12.la
+ ln -s libpng12.la libpng.la
+ for ext in a la so sl dylib
+ rm -f libpng.so
+ test -f libpng12.so
+ ln -s libpng12.so libpng.so
+ for ext in a la so sl dylib
+ rm -f libpng.sl
+ test -f libpng12.sl
+ for ext in a la so sl dylib
+ rm -f libpng.dylib
+ test -f libpng12.dylib
make[2]: Leaving directory '/home/grovekeeper/Downloads/libpng-1.2.49'
test -z "/usr/local/share/man/man3" || /usr/bin/mkdir -p "/usr/local/share/man/man3"
/usr/bin/install -c -m 644 libpng.3 libpngpf.3 '/usr/local/share/man/man3'
test -z "/usr/local/share/man/man5" || /usr/bin/mkdir -p "/usr/local/share/man/man5"
/usr/bin/install -c -m 644 png.5 '/usr/local/share/man/man5'
test -z "/usr/local/lib/pkgconfig" || /usr/bin/mkdir -p "/usr/local/lib/pkgconfig"
/usr/bin/install -c -m 644 libpng12.pc '/usr/local/lib/pkgconfig'
test -z "/usr/local/include/libpng12" || /usr/bin/mkdir -p "/usr/local/include/libpng12"
/usr/bin/install -c -m 644 png.h pngconf.h '/usr/local/include/libpng12'
make install-data-hook
make[2]: Entering directory '/home/grovekeeper/Downloads/libpng-1.2.49'
cd /usr/local/include; rm -f png.h pngconf.h
cd /usr/local/include; ln -s libpng12/png.h png.h
cd /usr/local/include; ln -s libpng12/pngconf.h pngconf.h
cd /usr/local/lib/pkgconfig; rm -f libpng.pc
cd /usr/local/lib/pkgconfig; ln -s libpng12.pc libpng.pc
make[2]: Leaving directory '/home/grovekeeper/Downloads/libpng-1.2.49'
make[1]: Leaving directory '/home/grovekeeper/Downloads/libpng-1.2.49'
сделал симлинки на то чего не хватает, теперь такое
mist@debian:/usr/lib/x86_64-linux-gnu$
mist@debian:~/Downloads/nQuake/y$ ./ezquake-linux-x86_64
./ezquake-linux-x86_64: /lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./ezquake-linux-x86_64)
./ezquake-linux-x86_64: /lib/x86_64-linux-gnu/libjpeg.so.8: version `LIBJPEG_8.0' not found (required by ./ezquake-linux-x86_64)
./ezquake-linux-x86_64: /lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by ./ezquake-linux-x86_64)
Почему такие грабли?
Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
ezau_primo
- Level 1
- Posts: 42
- Joined: Wed May 15, 2019 8:49 am
How can I install libpng12.so.0?
Hi, everyone.
I’m trying to install the game Wakfu. And when I do so, appears this message: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
How can I solve this problem?
Thanks for the help.
[Edit: it seems I already have libpng16 installed.]
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-
WharfRat
- Level 21
- Posts: 13834
- Joined: Thu Apr 07, 2011 8:15 pm
Re: How can I install libpng12.so.0?
Post
by WharfRat » Sat Jun 01, 2019 8:59 am
Simple sudo apt install libpng12-0
There’s also a libpng12-0:i386. I have both installed on my system.
Code: Select all
[bill@XPS] ~ $ apt search libpng12|grep ^i
i libpng12-0 - PNG library - runtime
i libpng12-0:i386 - PNG library - runtime
[bill@XPS] ~ $
-
ezau_primo
- Level 1
- Posts: 42
- Joined: Wed May 15, 2019 8:49 am
Re: How can I install libpng12.so.0?
Post
by ezau_primo » Sat Jun 01, 2019 9:32 am
WharfRat wrote: ↑
Sat Jun 01, 2019 8:59 am
Simplesudo apt install libpng12-0
There’s also a libpng12-0:i386. I have both installed on my system.
Code: Select all
[bill@XPS] ~ $ apt search libpng12|grep ^i i libpng12-0 - PNG library - runtime i libpng12-0:i386 - PNG library - runtime [bill@XPS] ~ $
I ran the command and it says the package libpng12-0 isn’t available for installation, but it’s referred to by another package.
I don’t know if it’s important, but I use Amd64 bits.
-
gm10
- Level 20
- Posts: 10480
- Joined: Thu Jun 21, 2018 5:11 pm
Re: How can I install libpng12.so.0?
Post
by gm10 » Fri Jul 19, 2019 8:04 pm
Yeah they had some mistakes in the command. Do this:
And note that while this will install the library, you will not be receiving any security updates for it. Probably not an issue because no software other than your game will be using this outdated library, but just so you know.
Last bumped by ezau_primo on Fri Jul 19, 2019 8:04 pm.
- Forum
- The Ubuntu Forum Community
- Other Discussion and Support
- Other OS Support and Projects
- Other Operating Systems
- Debian
- libpng12.so.0 is missed
-
libpng12.so.0 is missed
I am trying to install Maya 2019. Runing comand ./setup gave me this: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
Where and how to get libpng12.so.0?
-
Re: libpng12.so.0 is missed
According to https://github.com/tcoopman/image-we…ader/issues/95, you can use:
Code:
wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb && dpkg -i /tmp/libpng12.deb && rm /tmp/libpng12.deb
This code d-loads the package to the /tmp/ directory and installs it, then removes the .deb (Package)
Let it be clear here I bare no responsibility, if this creates other problems with your OS.With realization of one’s own potential and self-confidence in one’s ability, one can build a better world.
Dalai Lama>>
Code Tags Arch Linux, openSuse Tumbleweed
-
Re: libpng12.so.0 is missed
Libpng 1.2 is the version from 2016. It’s pretty bad that Autodesk are putting in hard dependencies on things that old.
You can get it from packages.ubuntu and either install it like any other package or just extract the file you need and stick it in Maya’s directory.
You might even be able to just symlink your existing libpng 1.6 to libpng12.so.0 without installing anything.
-
Re: libpng12.so.0 is missed
Originally Posted by CatKiller
Libpng 1.2 is the version from 2016. It’s pretty bad that Autodesk are putting in hard dependencies on things that old.
You can get it from packages.ubuntu and either install it like any other package or just extract the file you need and stick it in Maya’s directory.
You might even be able to just symlink your existing libpng 1.6 to libpng12.so.0 without installing anything.
1. Thanks, will try to download from old repositories (I am on Debian 10 — so will try to get it from jessy).
2. I tried to create symbilic link — did not work — still wants original libpng12-0.
3. I also found out that Autodesk requiers to have multi-network license to run Maya on Linux. This is sad evem more than issue with libpng12.
-
Re: libpng12.so.0 is missed
Originally Posted by According to [URL=»https://github.com/tcoopman/image-webpack-loader/issues/95″
https://github.com/tcoopman/image-we…ader/issues/95[/URL], you can use:
Thanks.
-
Re: libpng12.so.0 is missed
-
Re: libpng12.so.0 is missed
I have also faced same problem. Thank you very much for the information.
-
Re: libpng12.so.0 is missed