Autor Tópico: Instalação do Proftpd  (Lida 1592 vezes)

Offline FarinhadeOsso

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Instalação do Proftpd
« Online: 03 de Julho de 2011, 12:49 »
Olá,

Vi um tutorial em outro site  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?pagina=2

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

# tar jxf proftpd-xxx.tar.bz2
# cd proftpd-xxx
# ./configure --with-modules=mod_sql:mod_sql_mysql --with-includes=/usr/local/mysql/include/mysql/ --with-libraries=/usr/local/mysql/lib/mysql/


Mas quando eu digito aquele comando make, aparece esse seguinte erro:

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!

Offline FarinhadeOsso

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Re: Instalação do Proftpd
« Resposta #1 Online: 05 de Julho de 2011, 17:16 »
Olá,

Problema resolvido! Instalei com o PureFTPd e funcionou!

Offline zekkerj

  • Usuário Ubuntu
  • *
  • Mensagens: 19.735
  • Gratidão gera gratidão, lamúria atrai lamúria...
    • Ver perfil
    • Blog do Zekke
Re: Instalação do Proftpd
« Resposta #2 Online: 06 de Julho de 2011, 22:24 »
Da próxima vez, tente usar o gerenciador de pacotes:

sudo apt-get install proftpd[
Pesquise antes de perguntar, sua dúvida pode já ter sido respondida.
Não respondo dúvidas por MP, coloque sua dúvida no fórum onde ela pode ser pesquisada pelos seus colegas!
Não venha ao fórum apenas para perguntar. Se você sabe a resposta de um problema, porque não ajudar seu colega? ;D