+ Responder ao Tópico



  1. #1

    Padrão Instalação do Proftpd (g++)

    Olá,

    Vi um tutorial em outro site que ensina a instalar o Proftpd integrado com o MySQL, vejam o link: Linux: ProFTPD + MySQL - Servidor FTP com usuários em banco de dados [Artigo]

    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#

    Sou novo em linux e vi que tem alguma coisa a ver com o g++. Dei uma pequena pesquisada e descobri que ele é um compilador, mas não consegui resolver meu problema.

    Obrigado!

  2. #2

    Padrão Re: Instalação do Proftpd (g++)

    Olá!

    Consegui arranjar a solução para esse problema, era só executar esses comandos:



    ./configure funcionou, porém quando eu digitei o make apareceram alguns erros:


    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!

  3. #3

    Padrão Re: Instalação do Proftpd (g++)

    Olá,

    Problema resolvido! Instalei com o PureFTPd e funcionou!