Php5-Imagick - Installation error in debian 7

Asked

Viewed 594 times

1

I didn’t find any reference to what the error might be when I try to install a php module (Php5-Imagick)

root@SMSA443:~# apt-get -f install php5-imagick php5-cgi

Returns the message:

root@SMSA443:~# apt-get install php5-imagick
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
Os seguintes pacotes foram instalados automaticamente e já não são necessários:
  libgd2-xpm liblua5.1-0 php5-cli
Use 'apt-get autoremove' para removê-los.
Os pacotes extra a seguir serão instalados:
  fontconfig-config fonts-dejavu-core fonts-droid ghostscript gsfonts
  imagemagick-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libcups2 libcupsfilters1 libcupsimage2 libdb5.3 libedit2
  libfontconfig1 libgd3 libgs9 libgs9-common libijs-0.35 libjasper1 libjbig0
  libjbig2dec0 libjson-c2 liblcms2-2 liblqr-1-0 liblua5.1-0 libmagickcore5
  libmagickwand5 libpaper-utils libpaper1 libtiff5 libvpx1 libxml2 lsof php5
  php5-cgi php5-cli php5-common php5-curl php5-gd php5-imap php5-json
  php5-mcrypt php5-ming php5-ps php5-pspell php5-recode php5-sqlite
  php5-sybase php5-tidy php5-xmlrpc php5-xsl poppler-data ttf-dejavu-core
Pacotes sugeridos:
  ghostscript-cups ghostscript-x hpijs cups-common libgd-tools
  libjasper-runtime liblcms2-utils libmagickcore5-extra php-pear
  php5-user-cache poppler-utils fonts-japanese-mincho fonts-ipafont-mincho
  fonts-japanese-gothic fonts-ipafont-gothic fonts-arphic-ukai
  fonts-arphic-uming fonts-unfonts-core
Pacotes recomendados:
  php5-readline
Os pacotes a seguir serão REMOVIDOS:
  libapache2-mod-php5
Os NOVOS pacotes a seguir serão instalados:
  fonts-dejavu-core fonts-droid ghostscript gsfonts imagemagick-common
  libcupsfilters1 libcupsimage2 libdb5.3 libgd3 libgs9 libgs9-common
  libijs-0.35 libjasper1 libjbig0 libjbig2dec0 libjson-c2 liblcms2-2
  liblqr-1-0 liblua5.1-0 libmagickcore5 libmagickwand5 libpaper-utils
  libpaper1 libtiff5 libvpx1 lsof php5-cgi php5-imagick php5-json poppler-data
Os pacotes a seguir serão atualizados:
  fontconfig-config libapr1 libaprutil1 libaprutil1-dbd-sqlite3
  libaprutil1-ldap libcups2 libedit2 libfontconfig1 libxml2 php5 php5-cli
  php5-common php5-curl php5-gd php5-imap php5-mcrypt php5-ming php5-ps
  php5-pspell php5-recode php5-sqlite php5-sybase php5-tidy php5-xmlrpc
  php5-xsl ttf-dejavu-core
26 pacotes atualizados, 30 pacotes novos instalados, 1 a serem removidos e 284 não atualizados.
É preciso baixar 0 B/26,6 MB de arquivos.
Depois desta operação, 63,1 MB adicionais de espaço em disco serão usados.
Você quer continuar [S/n]? S
E: Não foi possível proceder à configuração imediata em 'php5-cgi'. Para detalhes, por favor veja man 5 apt.conf em APT::Immediate-Configure. (2)
root@SMSA443:~#

As additional information, some procedures and information I have collected with the help of employees.

root@XXXXXX:~# ls -la /
drwxrwxrwt 7 root root 4096 Fev 12 09:09 /tmp/ 

root@XXXXXX:~# mount | grep tmp 
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) 
udev on /dev type tmpfs (rw,mode=0755) 
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)

root@XXXXXX:~# aptitude search libc | grep ^i 
i libc6 - Embedded GNU C 

root@XXXXX:~# aptitude search php | grep php5-cgi 
pB php5-cgi - server-side, HTML-embedded scripting lang

root@XXXXXX:~# apt-get install libc6 
Lendo listas de pacotes... 
Pronto Construindo árvore de dependências 
Lendo informação de estado... 
Pronto libc6 já é a versão mais nova. 
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 311 não atualizados. 

I’ve already deleted the installation files from dpkg and when executed returns the same error.

Has anyone ever been through anything like it and can help me?

  • It’s been a long time since I installed Imagick but if I’m not mistaken it uses the /tmp to compile a part of the modules, then check if your /tmp is mounted with read, write and run access.

  • drwxrwxrwt 7 root root 4096 Fev 12 09:09 /tmp/ are released...

  • Write mount | grep tmp and see if the result is this: tmpfs on /tmp type tmpfs (rw) or if this is tmpfs on /tmp type tmpfs (rw,noexec) because if you’re with noexec even though he is with the permission you have shown, he will not run, this is common in server distros for security reasons.

  • root@SMSA443:~# mount | grep tmp
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
root@SMSA443:~# I found this result @Abriel-gartz

  • Theoretically your tmp is built permissively, so it may be missing some lib used in the compilation of Imagick, try to install libc and build tools: apt-get install build-essential libc

  • There are these root@SMSA443:~# aptitude search libc | grep ^i
i libc6 - Embedded GNU C 
root@SMSA443:~# libc6 is installed as...

  • and the build-essential? you need to have them installed too, probably if you give Tail no /var/log/messages when you run the installation, it will give you more details of what is breaking during the Imagick installation process, it will become easier. Please check, if you find more details please edit the question so I can guide you to solve this problem.

Show 2 more comments

2 answers

1

Thank you to all who will contribute.

The problem was that he needed to uninstall php5-cgi, then install "Image Magick" and its module to php, but for this he asks to uninstall some module, among them libapache2-mod-php5 that can make your pages stop working, but just reinstall them.

I’m still having some errors due to this installation, which by the way I don’t recommend. Plus, that’s it!

Thanks again.

1

Update 12/02/2014

Try downloading the package directly, in case here:

http://download.unesp.br/linux/debian/pool/main/p/php5/php5-cgi_5.4.4-14+deb7u7_i386.deb

And install it directly

sudo dpkg -i php5-cgi_5.4.4-14+deb7u7_i386.deb

(Remembering that this is for 32bits, if your architecture is 64bits, add a comment about it here.)

After that, you can try :

sudo apt-get -f install

Ancient

Sometimes this error occurs because the package needs a libc more updated to be able to be installed. However this version of libc not yet installed. If this is the problem, you can try:

apt-get update && apt-get install libc6

If this works, try the seguine command, but do not continue if it wants to remove something (especially libc6). You can post in the comments if it tries to remove something.

apt-get install libc6-i686

If everything works, run an apt-get update before trying to run your commands again:

apt-get update

One important thing to add to your question is whether this only happens when you try to install php5-cgi or happens to any other system package?

Response based on this article (in English)

  • root@SMSA443:~# apt-get install libc6
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
libc6 já é a versão mais nova.
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 311 não atualizados.
root@SMSA443:~# It’s already on the latest, I’ll try the other option. Thank you!

  • I executed the apt-get install libc6-i686 and installed normal, without asking to delete anything, but the command: apt-get -f install php5-imagick still didn’t work... Thanks again!

  • One important thing to add to your question is whether this only happens when you try to install php5-cgi or happens to any other system package?

  • Only with the package: php5-Imagick

  • I already installed php5-Gd; php5-sqlite; php5-Sybase and so on...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.