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.
– Gabriel Gartz
drwxrwxrwt 7 root root 4096 Fev 12 09:09 /tmp/
are released...– Marcus Silva
Write
mount | grep tmp
and see if the result is this:tmpfs on /tmp type tmpfs (rw)
or if this istmpfs on /tmp type tmpfs (rw,noexec)
because if you’re withnoexec
even though he is with the permission you have shown, he will not run, this is common in server distros for security reasons.– Gabriel Gartz
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– Marcus Silva
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
– Gabriel Gartz
There are these
root@SMSA443:~# aptitude search libc | grep ^i
i libc6 - Embedded GNU C 
root@SMSA443:~#
libc6 is installed as...– Marcus Silva
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.– Gabriel Gartz