Estava atualizando o sistema (emerge -uDv world), na compilação do pacote gnome-extra/gtkhtml-3.16.3, o erro que segue foi apresentado:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libgnutls.so.13, needed by /usr/lib64/libsoup-2.2.so, not found (try using -rpath or -rpath-link)
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_certificate_set_x509_key_file@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_record_send@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_init@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_set_default_priority@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_certificate_expiration_time_peers@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_certificate_activation_time_peers@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_x509_crt_import@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_certificate_allocate_credentials@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_certificate_set_x509_trust_file@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_dh_params_generate2@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_record_recv@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_record_get_direction@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_dh_params_deinit@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_dh_set_prime_bits@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_x509_crt_check_hostname@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_handshake@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_certificate_type_get@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_deinit@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_global_init@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_credentials_set@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_x509_crt_init@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_transport_set_ptr@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_certificate_verify_peers@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_bye@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_certificate_get_peers@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_certificate_free_credentials@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_certificate_set_dh_params@GNUTLS_1_3'
/usr/lib64/libsoup-2.2.so: undefined reference to `gnutls_dh_params_init@GNUTLS_1_3'
collect2: ld returned 1 exit status
make[2]: *** [testgtkhtml] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnome-extra/gtkhtml-3.16.3/work/gtkhtml-3.16.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-extra/gtkhtml-3.16.3/work/gtkhtml-3.16.3'
make: *** [all] Error 2
*
* ERROR: gnome-extra/gtkhtml-3.16.3 failed.
* Call stack:
*               ebuild.sh, line   46:  Called src_compile
*             environment, line  665:  Called gnome2_src_compile
*             environment, line  589:  Called die
* The specific snippet of code:
*       emake || diefunc "$FUNCNAME" "$LINENO" "$?" "compile failure"
*  The die message:
*   compile failure
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/gnome-extra/gtkhtml-3.16.3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/gnome-extra/gtkhtml-3.16.3/temp/environment'.
*

a solução foi apenas recompilar a libsoup:

1
emerge libsoup

abraço,
t+

Tags: , , , ,


Instalando Apache2 no Debian:

1
Debian 4.0 : # apt-get -y install apache2

Instalando Apache2 + PHP5:

1
Debian 4.0 : # apt-get -y install libapache2-mod-php5 php5-cli php5-common php5-cgi

Iniciando Apache:

1
Debian 4.0 : # /etc/init.d/apache2 start

Parando Apache:

1
Debian 4.0 : # /etc/init.d/apache2 stop

Reiniciando Apache:

1
Debian 4.0 : # /etc/init.d/apache2 restart

Habilitando Módulos no Apache2:

1
2
3
4
Debian 4.0 : # a2enmod
Which module would you like to enable?
Your choices are: actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgid cgi charset_lite dav_fs dav dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic negotiation php5 proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy rewrite setenvif speling ssl status suexec unique_id userdir usertrack version vhost_alias
Module name?

** Após habilitar algum módulo é necessário reiniciar o apache **

Desabilitando Módulos no Apache2:

1
2
3
4
Debian 4.0 : # a2dismod
Which module would you like to disable?
Your choices are: alias auth_basic authn_file authz_default authz_groupfile authz_host authz_user autoindex cgi dir env mime negotiation php5 setenvif status
Module name?

** Após desabilitar algum módulo é necessário reiniciar o apache **

Instalando MySQL5:

1
Debian 4.0 : # apt-get -y install mysql-common mysql-server mysql-server-5.0

Definindo senha de root para o MySQL:

1
Debian 4.0 : # mysqladmin -u root -p password 'definir_senha_para_root'

Criando Banco de dados:

1
2
Debian 4.0 : # mysqladmin -p create nome_do_banco_de_dados
Enter password:

Definindo novo usuário e garantindo permissões:

1
2
3
4
5
6
mysql -u root -p
Enter Password: *****
mysql> create user 'NovoUsuario'@localhost identified by 'Password';
mysql> GRANT ALL PRIVILEGES ON </i><i>nome_do_banco_de_dados . * TO NovoUsuario@'localhost';
mysql> FLUSH PRIVILEGES;
mysql> quit

Instalando Adodb:

1
Debian 4.0 : # apt-get -y install libphp-adodb

Reiniciando Apache para que todas as mudanças entrem em vigor:

1
Debian 4.0 : # /etc/init.d/apache2 restart

Testando php:

1
2
Debian 4.0 : # echo "<?php phpinfo(); ?>" >> /var/www/teste.php
agora é só escolher o seu navegador e abrir http://localhost/teste.php ou ip_do_seu_servidor/teste.php

abraço,
t++

Tags: , , , ,