Compilacion del modulo mcrypt sobre Solaris 10

Page last edited hace 2181 días 2 horas
De Solaris-ES
Saltar a: navegación, buscar

Compilacion del modulo mcrypt sobre Solaris 10[editar]

  • Instalar paquetes de sunfreeware
root@sol01 # gunzip libnet-1.1.2.1-sol10-x86-local.gz 
root@sol01 # pkgadd -d libnet-1.1.2.1-sol10-x86-local 

root@sol01 # gunzip gmp-4.2.1-sol10-x86-local.gz 
root@sol01 # pkgadd -d ./gmp-4.2.1-sol10-x86-local 

root@sol01 # gunzip bash-4.2-sol10-x86-local.gz 
root@sol01 # pkgadd -d bash-4.2-sol10-x86-local 

root@sol01 # gunzip libtool-2.4-sol10-x86-local.gz 
root@sol01 # pkgadd -d libtool-2.4-sol10-x86-local
root@sol01 # libtoolize --automake
root@sol01 # libtoolize --ltdl -c -f
root@sol01 # autoreconf -i
  • Instalar libmcrypt
 Download: ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt
root@sol01 # cd libmcrypt-2.5.7
root@sol01 # ./configure --disable-posix-threads --enable-dynamic-loading -with-mcrypt=usr/local/include
root@sol01 # /usr/local/bin/make 
root@sol01 # /usr/local/bin/make install
  • Instalar libmhash de ser necesario (solo si mcrypt lo solicita)
Download: http://sourceforge.net/projects/mhash/files/latest/download
root@sol01  # bunzip2 mhash-0.9.9.9.tar.bz2
root@sol01  # tar xvf mhash-0.9.9.9.tar 
root@sol01  # cd mhash-0.9.9.9
root@sol01  # ./configure
root@sol01  # /usr/local/bin/make
root@sol01  # /usr/local/bin/make install    
  • Instalar mcrypt
Download: http://sourceforge.net/projects/mcrypt/files/latest/download
root@sol01 # gunzip mcrypt-2.6.8.tar.gz 
root@sol01 # tar xvf mcrypt-2.6.8.tar 
root@sol01 # cd mcrypt-2.6.8
root@sol01 # ./configure 
root@sol01 # /usr/local/bin/make 
root@sol01 # /usr/local/bin/make install  
  • Compilación de PHP
Download: http://php.net/downloads.php
root@sol01 # cd php-5.3.9
./configure \
	--prefix=/usr/local/php \
	--with-config-file-path=/usr/local/php/lib \
	--with-libxml-dir=/usr/local \
	--with-zlib=/usr/local \
	--with-xpm-dir=/usr/local \
	--with-mysql=/usr/local/mysql \
	--with-mysqli=/usr/local/mysql/bin/mysql_config \
	--with-apxs2=/usr/local/apache2/bin/apxs \
	--without-pgsql \
	--with-jpeg-dir=/usr/local/lib \
	--with-zlib-dir=/usr/local/lib \
	--with-gd=/usr/local \
	--enable-mbstring \
	--enable-shared \
	--enable-exif \
	--enable-sockets \
	--enable-soap \
	--with-png-dir=/usr/local/lib \
	--with-curl=/usr/local \
	--with-ldap=/usr/local \
	--with-openssl=/usr/local/ssl \
	--with-gettext \
	--with-pcre-dir=/usr/local \
	--with-freetype-dir=/usr/local \
	--with-mssql=/usr/local/freetds \
	--with-mcrypt=/usr/local/lib
root@sol01 # /usr/local/bin/make
root@sol01 # /usr/local/bin/make install
root@sol01 # svcadm restart apache2
root@sol01 # php -version
  • Configuración del archivo php.ini
root@sol01 # cat /usr/local/php/lib/php.ini
error_log = /var/www/php_error_log
display_errors = Off
log_errors= On

extension=memcache.so
extension=apc.so
extension=ssh2.so
extension=mcrypt.so
 
[APC]
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 64
apc.max_file_size = 10M
apc.stat=1