Instalação do Proftpd [RESOLVIDO]

1. Instalação do Proftpd [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 02/07/2011 - 11:37h

Olá,

Estou seguindo um artigo aqui no vivaonlinux que ensina a instalar o Proftpd integrado com o MySQL, vejam o link: http://www.vivaolinux.com.br/artigo/ProFTPD-+-MySQL-Servidor-FTP-com-usuarios-em-banco-de-dados?pagi...

Na parte de instalação do proftpd, eu consigo extrair e entrar na pasta:

# tar jxf proftpd-xxx.tar.bz2
# cd proftpd-xxx

Quando eu digito aquele comando configure, aparece esse seguinte erro:

root@servidor:~/proftpd-1.3.2e# ./configure --with-modules=mod_sql:mod_sql_mysql
--with-includes=/usr/local/mysql/include/mysql/ --with-libraries=/usr/local/mys
ql/lib/mysql/
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
root@servidor:~/proftpd-1.3.2e# locate config.log
/root/proftpd-1.3.2e/config.log
/suphp/suphp-0.7.1/config.log
/var/log/fontconfig.log
root@servidor:~/proftpd-1.3.2e#

Vi no erro que tem a ver com g++ então acho que estou na àrea certa, sou novo em linux ;)

Obrigado!


  


2. Instalar compilador.

Leonardo Kiyota
leonardo.kiyota

(usa Linux Mint)

Enviado em 02/07/2011 - 15:52h

Boa tarde. O configure está informando que não encontrou o compilador gcc.
Faça o seguinte.
$ sudo apt-get update
$ sudo apt-get install gcc g++ build-essential
$ sudo ldconfig
Depois de instalados execute novamente os comandos.
$./configure
$ make
$ sudo make install


3. Re: Instalação do Proftpd [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 02/07/2011 - 19:35h

Olá,

Após executar esses comandos, consegui digitar o ./configure com os parâmetros do tutorial sem erros,
porém após executar o comando make, apareceram esses:



root@servidor:~/proftpd-1.3.2e# make
echo \#define BUILD_STAMP \"`date`\" >include/buildstamp.h
cd lib/ && make lib
make[1]: Entering directory `/root/proftpd-1.3.2e/lib'
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c pr_fnmatch.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c sstrncpy.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c strsep.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c vsnprintf.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c glibc-glob.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c glibc-hstrerror.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c glibc-mkstemp.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c pr-syslog.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c pwgrent.c
ar rc libsupp.a pr_fnmatch.o sstrncpy.o strsep.o vsnprintf.o glibc-glob.o glibc-
hstrerror.o glibc-mkstemp.o pr-syslog.o pwgrent.o
ranlib libsupp.a
make[1]: Leaving directory `/root/proftpd-1.3.2e/lib'
cd src/ && make src
make[1]: Entering directory `/root/proftpd-1.3.2e/src'
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c main.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c timers.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c sets.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c pool.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c str.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c table.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c regexp.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c dirtree.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c expr.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c support.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c netaddr.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c inet.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c child.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c parser.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c log.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c lastlog.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c xferlog.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c bindings.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c netacl.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c class.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c scoreboard.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c help.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c feat.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c netio.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c response.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c data.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c modules.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c display.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c auth.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c fsio.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mkhome.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c ctrls.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c event.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c var.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c throttle.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c trace.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c encode.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c proctitle.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c pidfile.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c env.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c version.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c ftpdctl.c
make[1]: Leaving directory `/root/proftpd-1.3.2e/src'
cd modules/ && make static
make[1]: Entering directory `/root/proftpd-1.3.2e/modules'
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_core.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_xfer.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_auth_unix.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_auth_file.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_auth.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_ls.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_log.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_site.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_delay.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_facts.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_ident.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_sql.c
gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/local/mysql/include/mysql
/ -O2 -Wall -c mod_sql_mysql.c
mod_sql_mysql.c:138: fatal error: mysql.h: No such file or directory
compilation terminated.
make[1]: *** [mod_sql_mysql.o] Error 1
make[1]: Leaving directory `/root/proftpd-1.3.2e/modules'
make: *** [modules] Error 2
root@servidor:~/proftpd-1.3.2e#


Observação: eu não executei aquela instalação do MySQL lá pois eu já tenho o MySQL instalado em minha máquina.

Obrigado!


4. Re: Instalação do Proftpd [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 05/07/2011 - 17:13h

Olá,

Problema resolvido! Instalei com o PureFTPd e funcionou!






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts