newtonJr.
(usa CentOS)
Enviado em 14/09/2009 - 09:57h
Olá comunidade, não consigo instalar o sshpass no servidor. Preciso desse "troço" funcionando para automatizar um script que deve rodar em toda a rede da empresa e para isso quero utilizar comandos do tipo
sshpass -p "casa" ssh root@10.0.0.1 (http://www.vivaolinux.com.br/topico/Shell-Script/Como-fornecer-senha-de-ssh-na-linha-de-comando).
Trata-se de um CentOS 4.5 - Make 3.8 - gcc 3.4.6.
Baixei duas versões do sshpass 1.00 e 1.04 (http://sourceforge.net/projects/sshpass/).
Não consigo instalar nenhuma das duas versões.
Segui os passo-a-passo (http://www.zago.eti.br/ssh/ssh.html e
http://www.vivaolinux.com.br/topico/Shell-Script/Conectar-ssh), porém só funciona até o ./configure. Depois quando faço o make já dá erro e nem consigo fazer o make install. Executo os comandos como "root". Eis a saida dos comandos.
Agradeço desde já e fico no aguardo on-line. Att.
Saida do make:
[root@srv-sl-03 sshpass-1.04]# make
make all-am
make[1]: Entering directory `/tmp/sshpass/sshpass-1.04'
gcc -DHAVE_CONFIG_H -I. -g -DCPULinux -DVER_2008_19 -DLINUX -DLittleEndian -Wall -I/usr/local/include -fPIC -fpermissive -g -DCPULinux -DVER_2008_19 -DLINUX -DLittleEndian -Wall -I/usr/local/include -fPIC -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
cc1: warning: command line option "-fpermissive" is valid for C++/ObjC++ but not for C
mv -f .deps/main.Tpo .deps/main.Po
gcc -g -DCPULinux -DVER_2008_19 -DLINUX -DLittleEndian -Wall -I/usr/local/include -fPIC -o sshpass main.o
make[1]: Leaving directory `/tmp/sshpass/sshpass-1.04'
Saida make install:
[root@srv-sl-03 sshpass-1.04]# make install
make[1]: Entering directory `/tmp/sshpass/sshpass-1.04'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c 'sshpass' '/usr/local/bin/sshpass'
test -z "/usr/local/share/man/man1" || /bin/mkdir -p "/usr/local/share/man/man1"
/usr/bin/install -c -m 644 './sshpass.1' '/usr/local/share/man/man1/sshpass.1'
make[1]: Leaving directory `/tmp/sshpass/sshpass-1.04'
Saida Configure :
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... 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 dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for AIX... no
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking for unistd.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for ssize_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking for select... yes
checking for posix_openpt... yes
checking for strdup... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands