Lftp for linux 编译安装

Lftp_download

1.上传包
路径自选
2.解压

gunzip -c filename.tar.gz | tar -xvf -

tar -vxf lftp-4.8.4.tar.gz

tar -vxf lftp-4.9.2.tar.gz

3.授权

cd /软件包路径/
chmod 777 lftp-4.9.2.tar.gz
chown -R root.root lftp-4.9.2
chmod -X configure

依赖包
yum install -y gcc
yum install -y gcc-c++
yum -y install ncurses-devel
yum install -y readline-devel

配置./configure
默认命令安装路径/软件路径/lftp-4.9.2/src/lftp (可在 ./configure --prefix=“xxxxxxx” 自定义)
[root@localhost lftp-4.9.2]# ./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… /usr/bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking for style of include used by make… GNU
checking for gcc… gcc
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
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 enable C11 features… -std=gnu11
checking whether the compiler is clang… no
checking for compiler option needed when checking for declarations… none
checking dependency style of gcc -std=gnu11… gcc3
checking how to run the C preprocessor… gcc -std=gnu11 -E
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -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 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 whether _XOPEN_SOURCE should be defined… no
checking for Minix Amsterdam compiler… no
checking for ar… ar
checking for ranlib… ranlib
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking for _LARGEFILE_SOURCE value needed for large files… no
checking for special C compiler options needed for large files… no
checking for _FILE_OFFSET_BITS value needed for large files… no
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking for g++ option to enable C++11 features… -std=gnu++11
checking dependency style of g++ -std=gnu++11… gcc3
checking for bison… no
checking for byacc… no
checking for special C compiler options needed for large files… (cached) no
checking for _FILE_OFFSET_BITS value needed for large files… (cached) no
checking if g++ -std=gnu++11 supports -fno-exceptions -fno-rtti… yes
checking if -fno-implement-inlines implements virtual functions… yes
checking if c++ compiler works… yes
checking if c++ compiler can handle dynamic initializers… yes
checking whether g++ -std=gnu++11 supports bool type… yes
checking whether g++ -std=gnu++11 supports _Bool type… no
checking whether g++ -std=gnu++11 understands ANSI scoping rules… yes
checking whether stdint.h needs __STDC_LIMIT_MACROS in C++ mode… yes
checking for library containing strerror… none required
checking for ld used by gcc -std=gnu11… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for shared library run path origin… done
checking 32-bit host C ABI… no
checking for ELF binary format… yes
checking for the common suffixes of directories in the library search path… lib,lib,lib64
checking for iconv… yes
checking for working iconv… yes
checking for iconv declaration…
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t outbytesleft);
checking for a sed that does not truncate output… /usr/bin/sed
checking whether NLS is requested… yes
checking for msgfmt… /usr/bin/msgfmt
checking for gmsgfmt… /usr/bin/msgfmt
checking for xgettext… /usr/bin/xgettext
checking for msgmerge… /usr/bin/msgmerge
checking for CFPreferencesCopyAppValue… no
checking for CFLocaleCopyPreferredLanguages… no
checking for GNU gettext in libc… yes
checking whether to use NLS… yes
checking where the gettext function comes from… libc
checking how to print strings… printf
checking for a sed that does not truncate output… (cached) /usr/bin/sed
checking for fgrep… /usr/bin/grep -F
checking for ld used by gcc -std=gnu11… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for BSD- or MS-compatible name lister (nm)… /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface… BSD nm
checking whether ln -s works… yes
checking the maximum length of command line arguments… 1572864
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format… func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format… func_convert_file_noop
checking for /usr/bin/ld option to reload object files… -r
checking for objdump… objdump
checking how to recognize dependent libraries… pass_all
checking for dlltool… no
checking how to associate runtime and link libraries… printf %s\n
checking for archiver @FILE support… @
checking for strip… strip
checking for ranlib… (cached) ranlib
checking command to parse /usr/bin/nm -B output from gcc -std=gnu11 object… ok
checking for sysroot… no
checking for a working dd… /usr/bin/dd
checking how to truncate binary pipes… /usr/bin/dd bs=4096 count=1
checking for mt… no
checking if : is a manifest tool… no
checking for dlfcn.h… yes
checking for objdir… .libs
checking if gcc -std=gnu11 supports -fno-rtti -fno-exceptions… no
checking for gcc -std=gnu11 option to produce PIC… -fPIC -DPIC
checking if gcc -std=gnu11 PIC flag -fPIC -DPIC works… yes
checking if gcc -std=gnu11 static flag -static works… no
checking if gcc -std=gnu11 supports -c -o file.o… yes
checking if gcc -std=gnu11 supports -c -o file.o… (cached) yes
checking whether the gcc -std=gnu11 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking for shl_load… no
checking for shl_load in -ldld… no
checking for dlopen… no
checking for dlopen in -ldl… yes
checking whether a program can dlopen itself… yes
checking whether a statically linked program can dlopen itself… yes
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… no
checking whether to build static libraries… yes
checking how to run the C++ preprocessor… g++ -std=gnu++11 -E
checking for ld used by g++ -std=gnu++11… /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld… yes
checking whether the g++ -std=gnu++11 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking for g++ -std=gnu++11 option to produce PIC… -fPIC -DPIC
checking if g++ -std=gnu++11 PIC flag -fPIC -DPIC works… yes
checking if g++ -std=gnu++11 static flag -static works… no
checking if g++ -std=gnu++11 supports -c -o file.o… yes
checking if g++ -std=gnu++11 supports -c -o file.o… (cached) yes
checking whether the g++ -std=gnu++11 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking dynamic linker characteristics… (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking for size_t… yes
checking for working alloca.h… yes
checking for alloca… yes
checking for arpa/inet.h… yes
checking for features.h… yes
checking for sys/socket.h… yes
checking for dirent.h… yes
checking for unistd.h… (cached) yes
checking for fnmatch.h… yes
checking for sys/stat.h… (cached) yes
checking for getopt.h… yes
checking for sys/cdefs.h… yes
checking for sys/time.h… yes
checking for glob.h… yes
checking for threads.h… no
checking for iconv.h… yes
checking for netdb.h… yes
checking for netinet/in.h… yes
checking for limits.h… yes
checking for wchar.h… yes
checking for stdint.h… (cached) yes
checking for inttypes.h… (cached) yes
checking for langinfo.h… yes
checking for xlocale.h… yes
checking for math.h… yes
checking for sys/mman.h… yes
checking for sys/param.h… yes
checking for poll.h… yes
checking for sys/ioctl.h… yes
checking for sys/filio.h… no
checking for malloc.h… yes
checking for sys/select.h… yes
checking for strings.h… (cached) yes
checking for sys/uio.h… yes
checking for crtdefs.h… no
checking for wctype.h… yes
checking for utime.h… yes
checking whether the preprocessor supports include_next… yes
checking whether system header files limit the line length… no
checking whether <wchar.h> uses ‘inline’ correctly… yes
checking for btowc… yes
checking for chown… yes
checking for fchown… yes
checking for _set_invalid_parameter_handler… no
checking for fcntl… yes
checking for symlink… yes
checking for fnmatch… yes
checking for mbsrtowcs… yes
checking for fpurge… no
checking for __fpurge… yes
checking for __freading… yes
checking for getdtablesize… yes
checking for getlogin_r… yes
checking for getprogname… no
checking for getexecname… no
checking for gettimeofday… yes
checking for glob… yes
checking for glob_pattern_p… yes
checking for getpwnam_r… yes
checking for isblank… yes
checking for lchmod… no
checking for lstat… yes
checking for mbsinit… yes
checking for mbrtowc… yes
checking for isascii… yes
checking for mprotect… yes
checking for tzset… yes
checking for nl_langinfo… yes
checking for recvmsg… yes
checking for sendmsg… yes
checking for readlink… yes
checking for iswctype… yes
checking for setenv… yes
checking for strdup… yes
checking for strptime… yes
checking for strtoumax… yes
checking for localtime_r… yes
checking for timegm… yes
checking for vasnprintf… no
checking for snprintf… yes
checking for wcrtomb… yes
checking for iswcntrl… yes
checking for wcwidth… yes
checking for wmempcpy… yes
checking for nl_langinfo and CODESET… yes
checking for a traditional french locale… fr_FR
checking for uid_t in sys/types.h… yes
checking for unistd.h… (cached) yes
checking for working chown… yes
checking whether chown dereferences symlinks… yes
checking whether chown honors trailing slash… yes
checking whether chown always updates ctime… yes
checking for C/C++ restrict keyword… _restrict
checking whether <sys/socket.h> is self-contained… yes
checking for shutdown… yes
checking whether <sys/socket.h> defines the SHUT
macros… yes
checking for struct sockaddr_storage… yes
checking for sa_family_t… yes
checking for struct sockaddr_storage.ss_family… yes
checking for inline… inline
checking whether linux/if_alg.h has struct sockaddr_alg… yes
checking whether byte ordering is bigendian… no
checking if environ is properly declared… yes
checking for complete errno.h… yes
checking whether strerror_r is declared… yes
checking for strerror_r… yes
checking whether strerror_r returns char *… yes
checking for working fcntl.h… yes
checking for pid_t… yes
checking for mode_t… yes
checking for st_dm_mode in struct stat… no
checking whether strmode is declared… no
checking for mbstate_t… yes
checking whether frexp() can be used without linking with libm… yes
checking whether alarm is declared… yes
checking whether long double and double are the same… no
checking whether stdin defaults to large file offsets… yes
checking whether fseeko is declared… yes
checking for fseeko… yes
checking whether fflush works on input streams… no
checking whether stat file-mode macros are broken… no
checking for nlink_t… yes
checking whether ftello is declared… yes
checking for ftello… yes
checking whether ftello works… yes
checking whether getdtablesize is declared… yes
checking whether getlogin_r is declared… yes
checking whether getlogin is declared… yes
checking for getopt.h… (cached) yes
checking for getopt_long_only… yes
checking whether getopt is POSIX compatible… yes
checking for working GNU getopt function… yes
checking for working GNU getopt_long function… yes
checking for struct timeval… yes
checking for wide-enough struct timeval.tv_sec member… yes
checking pthread.h usability… yes
checking pthread.h presence… yes
checking for pthread.h… yes
checking whether POSIX threads API is available… yes
checking whether setlocale (LC_ALL, NULL) is multithread-safe… yes
checking whether setlocale (category, NULL) is multithread-safe… yes
checking for IPv4 sockets… yes
checking for IPv6 sockets… yes
checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc… no
checking for wint_t… yes
checking whether wint_t is too small… no
checking whether the compiler produces multi-arch binaries… no
checking whether stdint.h conforms to C99… no
checking sys/inttypes.h usability… no
checking sys/inttypes.h presence… no
checking for sys/inttypes.h… no
checking sys/bitypes.h usability… yes
checking sys/bitypes.h presence… yes
checking for sys/bitypes.h… yes
checking for bit size of ptrdiff_t… 64
checking for bit size of size_t… 64
checking for bit size of sig_atomic_t… 32
checking for bit size of wchar_t… 32
checking for bit size of wint_t… 32
checking whether sig_atomic_t is signed… yes
checking whether wchar_t is signed… yes
checking whether wint_t is signed… no
checking for ptrdiff_t integer literal suffix… l
checking for size_t integer literal suffix… ul
checking for sig_atomic_t integer literal suffix…
checking for wchar_t integer literal suffix…
checking for wint_t integer literal suffix… u
checking where to find the exponent in a ‘double’… word 1 bit 20
checking where to find the exponent in a ‘float’… word 0 bit 23
checking for wchar_t… yes
checking for good max_align_t… yes
checking whether NULL can be used in arbitrary expressions… yes
checking whether locale.h defines locale_t… yes
checking whether imported symbols can be declared weak… yes
checking for multithread API to use… posix
checking for unsigned long long int… yes
checking for long long int… yes
checking whether lstat correctly handles trailing slash… yes
checking whether malloc, realloc, calloc are POSIX compliant… yes
checking for stdlib.h… (cached) yes
checking for GNU libc compatible malloc… yes
checking for a traditional japanese locale… ja_JP
checking for a french Unicode locale… fr_FR.UTF-8
checking for a transitional chinese locale… zh_CN.GB18030
checking for mmap… yes
checking for MAP_ANONYMOUS… yes
checking whether memchr works… yes
checking whether memmem is declared… yes
checking for memmem… yes
checking whether memmem works… yes
checking whether <limits.h> defines MIN and MAX… no
checking whether <sys/param.h> defines MIN and MAX… yes
checking whether time_t is signed… yes
checking for working mktime… yes
checking whether struct tm is in sys/time.h or time.h… time.h
checking for struct tm.tm_zone… yes
checking for struct tm.tm_gmtoff… yes
checking for O_CLOEXEC… yes
checking for promoted mode_t type… mode_t
checking for stdbool.h that conforms to C99… yes
checking for _Bool… yes
checking for compound literals… yes
checking for library containing setsockopt… none needed
checking whether we are using the GNU C Library >= 2.1 or uClibc… yes
checking whether <sys/select.h> is self-contained… yes
checking whether setenv is declared… yes
checking search.h usability… yes
checking search.h presence… yes
checking for search.h… yes
checking for tsearch… yes
checking for sigset_t… yes
checking whether strdup is declared… yes
checking whether strerror(0) succeeds… yes
checking whether strnlen is declared… yes
checking whether strstr works… yes
checking whether strtok_r is declared… yes
checking whether strtoumax is declared… yes
checking for struct timespec in <time.h>… yes
checking whether unsetenv is declared… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for intmax_t… yes
checking whether snprintf returns a byte count as in C99… yes
checking for snprintf… (cached) yes
checking for strnlen… yes
checking for wcslen… yes
checking for wcsnlen… yes
checking for mbrtowc… (cached) yes
checking for wcrtomb… (cached) yes
checking whether _snprintf is declared… no
checking whether vsnprintf is declared… yes
checking whether printf supports size specifiers as in C99… yes
checking whether printf supports ‘long double’ arguments… yes
checking whether printf supports infinite ‘double’ arguments… yes
checking whether printf supports infinite ‘long double’ arguments… yes
checking whether printf supports the ‘a’ and ‘A’ directives… yes
checking whether printf supports the ‘F’ directive… yes
checking whether printf supports the ‘n’ directive… yes
checking whether printf supports the ‘ls’ directive… yes
checking whether printf supports the grouping flag… yes
checking whether printf supports the left-adjust flag correctly… yes
checking whether printf supports the zero flag correctly… yes
checking whether printf supports large precisions… yes
checking whether printf survives out-of-memory conditions… yes
checking for alloca as a compiler built-in… yes
checking whether btowc(0) is correct… yes
checking whether btowc(EOF) is correct… yes
checking for __builtin_expect… yes
checking byteswap.h usability… yes
checking byteswap.h presence… yes
checking for byteswap.h… yes
checking for library containing clock_gettime… none required
checking for clock_gettime… yes
checking for clock_settime… yes
checking for closedir… yes
checking for d_type member in directory struct… yes
checking for dirfd… yes
checking whether dirfd is declared… yes
checking whether dirfd is a macro… no
checking whether // is distinct from /… no
checking whether dup2 works… yes
checking for error_at_line… yes
checking whether fcntl handles F_DUPFD correctly… yes
checking whether fcntl understands F_DUPFD_CLOEXEC… needs runtime check
checking whether fflush works on input streams… (cached) no
checking for flexible array member… yes
checking whether conversion from ‘int’ to ‘long double’ works… yes
checking for working GNU fnmatch… yes
checking whether fpurge is declared… no
checking whether frexp works… yes
checking whether frexpl is declared… yes
checking whether frexpl() can be used without linking with libm… yes
checking whether frexpl works… yes
checking for fseeko… (cached) yes
checking whether fflush works on input streams… (cached) no
checking for _fseeki64… no
checking for ftello… (cached) yes
checking whether ftello works… (cached) yes
checking whether getdtablesize works… yes
checking whether getlogin_r works with small buffers… yes
checking whether program_invocation_name is declared… yes
checking whether program_invocation_short_name is declared… yes
checking whether __argv is declared… no
checking for gettimeofday with POSIX signature… almost
checking for GNU glob interface version 1 or 2… yes
checking whether glob lists broken symlinks… no
checking for library containing inet_pton… none required
checking whether inet_pton is declared… yes
checking whether the compiler generally respects inline… yes
checking whether INT32_MAX < INTMAX_MAX… yes
checking whether INT64_MAX == LONG_MAX… yes
checking whether UINT32_MAX < UINTMAX_MAX… yes
checking whether UINT64_MAX == ULONG_MAX… yes
checking whether isnan(double) can be used without linking with libm… yes
checking whether isnan(float) can be used without linking with libm… yes
checking whether isnan(float) works… yes
checking whether isnan(long double) can be used without linking with libm… yes
checking whether isnanl works… yes
checking whether langinfo.h defines CODESET… yes
checking whether langinfo.h defines T_FMT_AMPM… yes
checking whether langinfo.h defines ALTMON_1… no
checking whether langinfo.h defines ERA… yes
checking whether langinfo.h defines YESEXPR… yes
checking for lchown… yes
checking whether the compiler supports the __inline keyword… yes
checking whether locale.h conforms to POSIX:2001… yes
checking whether struct lconv is properly defined… yes
checking for pthread_rwlock_t… yes
checking whether pthread_rwlock_rdlock prefers a writer to a reader… no
checking whether lseek detects pipes… yes
checking whether NAN macro works… yes
checking whether HUGE_VAL works… yes
checking whether mbrtowc handles incomplete characters… yes
checking whether mbrtowc works as well as mbtowc… yes
checking whether mbrtowc handles a NULL pwc argument… yes
checking whether mbrtowc handles a NULL string argument… yes
checking whether mbrtowc has a correct return value… yes
checking whether mbrtowc returns 0 when parsing a NUL character… yes
checking whether mbrtowc stores incomplete characters… no
checking whether mbrtowc works on empty input… no
checking whether the C locale is free of encoding errors… no
checking whether mbrtowc handles incomplete characters… (cached) yes
checking whether mbrtowc works as well as mbtowc… (cached) yes
checking whether mbrtowc handles incomplete characters… (cached) yes
checking whether mbrtowc works as well as mbtowc… (cached) yes
checking whether mbsrtowcs works… yes
checking whether mbswidth is declared in <wchar.h>… no
checking for mbstate_t… (cached) yes
checking for mbtowc… yes
checking whether memmem works in linear time… yes
checking for memmem… (cached) yes
checking whether memmem works… (cached) yes
checking for mempcpy… yes
checking for __mktime_internal… no
checking whether <netinet/in.h> is self-contained… yes
checking whether YESEXPR works… yes
checking whether open recognizes a trailing slash… yes
checking for opendir… yes
checking for bison… no
checking for struct tm.tm_zone… (cached) yes
checking for struct msghdr.msg_accrights… no
checking for poll… yes
checking whether frexp works… (cached) yes
checking whether ldexp can be used without linking with libm… yes
checking whether frexpl() can be used without linking with libm… (cached) yes
checking whether frexpl works… (cached) yes
checking whether frexpl is declared… (cached) yes
checking whether ldexpl() can be used without linking with libm… yes
checking whether ldexpl works… yes
checking whether ldexpl is declared… yes
checking for readdir… yes
checking whether readlink signature is correct… yes
checking whether readlink handles trailing slash correctly… yes
checking for working re_compile_pattern… no
checking libintl.h usability… yes
checking libintl.h presence… yes
checking for libintl.h… yes
checking whether isblank is declared… yes
checking whether select supports a 0 argument… yes
checking whether select detects invalid fds… yes
checking whether setenv validates arguments… yes
checking whether setlocale (LC_ALL, NULL) is multithread-safe… (cached) yes
checking whether setlocale (category, NULL) is multithread-safe… (cached) yes
checking for volatile sig_atomic_t… yes
checking for sighandler_t… yes
checking for signbit macro… yes
checking for signbit compiler built-ins… yes
checking for stdint.h… (cached) yes
checking for SIZE_MAX… yes
checking for socklen_t… yes
checking for ssize_t… yes
checking whether stat handles trailing slashes on files… yes
checking for struct stat.st_atim.tv_nsec… yes
checking whether struct stat.st_atim is of type struct timespec… yes
checking for struct stat.st_birthtimespec.tv_nsec… no
checking for struct stat.st_birthtimensec… no
checking for struct stat.st_birthtim.tv_nsec… no
checking for working stdalign.h… yes
checking for good max_align_t… (cached) yes
checking whether NULL can be used in arbitrary expressions… (cached) yes
checking which flavor of printf attribute matches inttypes macros… system
checking for strcasecmp… yes
checking for strncasecmp… yes
checking whether strncasecmp is declared… yes
checking for working strerror function… yes
checking for working strnlen… yes
checking whether strstr works in linear time… no
checking whether strstr works… (cached) yes
checking for strtok_r… yes
checking whether strtok_r works… yes
checking for strtoull… yes
checking for nlink_t… (cached) yes
checking whether localtime_r is declared… yes
checking whether localtime_r is compatible with its POSIX signature… yes
checking whether localtime loops forever near extrema… no
checking for timezone_t… no
checking for unsetenv… yes
checking for unsetenv() return type… int
checking whether unsetenv obeys POSIX… yes
checking for ptrdiff_t… yes
checking for vsnprintf… yes
checking whether snprintf respects a size of 1… yes
checking whether printf supports POSIX/XSI format strings with positions… yes
checking for vsnprintf… (cached) yes
checking whether snprintf truncates the result as in C99… yes
checking whether snprintf fully supports the ‘n’ directive… yes
checking whether snprintf respects a size of 1… (cached) yes
checking whether vsnprintf respects a zero size as in C99… yes
checking whether mbrtowc handles incomplete characters… (cached) yes
checking whether mbrtowc works as well as mbtowc… (cached) yes
checking whether wcrtomb works in the C locale… yes
checking whether wcrtomb return value is correct… yes
checking whether iswcntrl works… yes
checking for towlower… yes
checking for wctype_t… yes
checking for wctrans_t… yes
checking whether wcwidth is declared… yes
checking whether wcwidth works reasonably in UTF-8 locales… yes
checking for wmemchr… yes
checking for stdint.h… (cached) yes
checking for library containing socket… none required
checking for library containing gethostbyname… none required
checking for library containing dlopen… -ldl
checking for library containing res_9_search… no
checking for library containing res_search… no
checking whether res_search is declared… yes
checking for library containing hstrerror… none required
checking curses.h usability… yes
checking curses.h presence… yes
checking for curses.h… yes
checking term.h usability… yes
checking term.h presence… yes
checking for term.h… yes
checking ncurses/curses.h usability… yes
checking ncurses/curses.h presence… yes
checking for ncurses/curses.h… yes
checking ncurses/term.h usability… yes
checking ncurses/term.h presence… yes
checking for ncurses/term.h… yes
checking termcap.h usability… yes
checking termcap.h presence… yes
checking for termcap.h… yes
checking for library containing tigetstr… -ltinfo
checking for tgetstr… yes
checking for Readline headers in /usr/include/readline… found
checking for Readline libraries… found
checking for Readline… yes
checking if Readline version is >= 5.0… yes
checking for pkg-config… /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
checking for LIBGNUTLS… yes
checking if zlib is wanted… yes
checking for inflateEnd in -lz… yes
checking zlib.h usability… yes
checking zlib.h presence… yes
checking for zlib.h… yes
checking for Expat XML Parser… no
checking util.h usability… no
checking util.h presence… no
checking for util.h… no
checking sys/stropts.h usability… no
checking sys/stropts.h presence… no
checking for sys/stropts.h… no
checking pty.h usability… yes
checking pty.h presence… yes
checking for pty.h… yes
checking for library containing openpty… -lutil
checking for _getpty… no
checking whether posix_fallocate() works… yes
checking for posix_fadvise… yes
checking idn2.h usability… no
checking idn2.h presence… no
checking for idn2.h… no
configure: WARNING: Libidn2 not found
checking if Libidn2 should be used… no
checking for dirent.h that defines DIR… yes
checking for library containing opendir… none required
checking for ANSI C header files… (cached) yes
checking for sys/wait.h that is POSIX.1 compatible… yes
checking whether time.h and sys/time.h may both be included… yes
checking for libintl.h… (cached) yes
checking for fcntl.h… yes
checking for sys/time.h… (cached) yes
checking for errno.h… yes
checking for stdlib.h… (cached) yes
checking for varargs.h… no
checking for dirent.h… (cached) yes
checking for termios.h… yes
checking for termio.h… yes
checking for sys/select.h… (cached) yes
checking for sys/stropts.h… (cached) no
checking for string.h… (cached) yes
checking for memory.h… (cached) yes
checking for strings.h… (cached) yes
checking for sys/ioctl.h… (cached) yes
checking for dlfcn.h… (cached) yes
checking for arpa/inet.h… (cached) yes
checking for arpa/nameser.h… yes
checking for netinet/in.h… (cached) yes
checking for netinet/tcp.h… yes
checking for netinet/in_systm.h… yes
checking for netinet/ip.h… yes
checking for termcap.h… (cached) yes
checking for sys/statfs.h… yes
checking for ifaddrs.h… yes
checking for resolv.h… yes
checking for langinfo.h… (cached) yes
checking for endian.h… yes
checking for locale.h… yes
checking for expat.h… no
checking for linux/magic.h… yes
checking for socks.h… no
checking for vsnprintf… (cached) yes
checking for snprintf… (cached) yes
checking if trio library is needed… no
checking for h_errno… yes
checking whether h_errno is declared… yes
checking for hstrerror… yes
checking whether hstrerror is declared… yes
checking for pid_t… (cached) yes
checking for an ANSI C-conforming const… yes
checking for inline… (cached) inline
checking for off_t… yes
checking for size_t… (cached) yes
checking for struct sockaddr.sa_len… no
checking for struct sockaddr_in6.sin6_scope_id… yes
checking for struct tm.tm_zone… (cached) yes
checking whether struct tm is in sys/time.h or time.h… (cached) time.h
checking whether utime accepts a null argument… yes
checking whether getpgrp requires zero arguments… yes
checking for vprintf… yes
checking for _doprnt… no
checking whether stat file-mode macros are broken… (cached) no
checking whether sscanf works on const strings… yes
checking for statfs… yes
checking for killpg… yes
checking for setpgid… yes
checking for tcgetattr… yes
checking for vsnprintf… (cached) yes
checking for snprintf… (cached) yes
checking for sscanf… yes
checking for gethostbyname2… yes
checking for getipnodebyname… no
checking for getaddrinfo… yes
checking for getnameinfo… yes
checking for setsid… yes
checking for random… yes
checking for inet_aton… yes
checking for setlocale… yes
checking for dn_expand… no
checking for socketpair… yes
checking for fallocate… yes
checking for an implementation of va_copy()… yes
checking for environ variable… yes
checking whether vsnprintf is declared… (cached) yes
checking whether snprintf is declared… yes
checking whether unsetenv is declared… (cached) yes
checking whether random is declared… yes
checking whether inet_aton is declared… yes
checking whether strptime is declared… yes
checking whether strtok_r is declared… (cached) yes
checking whether dn_expand is declared… yes
checking whether memmem is declared… (cached) yes
checking that generated files are newer than configure… done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating lib/Makefile
config.status: creating doc/Makefile
config.status: creating po/Makefile.in
config.status: creating m4/Makefile
config.status: creating trio/Makefile
config.status: creating contrib/Makefile
config.status: creating tests/Makefile
config.status: creating lftp.spec
config.status: creating lib/config.h
config.status: executing depfiles commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing libtool commands

6 编译
make & make install

… … …
g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I…/lib -I…/lib -I…/trio -I/usr/include/readline -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -MT lftp-attach.o -MD -MP -MF .deps/lftp-attach.Tpo -c -o lftp-attach.o test -f 'attach.cc' || echo './'attach.cc
mv -f .deps/lftp-attach.Tpo .deps/lftp-attach.Po
/bin/sh …/libtool --silent --tag=CXX --mode=link g++ -std=gnu++11 -O2 -Wall -Wwrite-strings -Woverloaded-virtual -fno-exceptions -fno-rtti -fno-implement-inlines -export-dynamic -s -o lftp lftp-lftp.o lftp-complete.o lftp-lftp_rl.o lftp-attach.o liblftp-jobs.la liblftp-tasks.la -L/usr/lib -lreadline -lutil -ltinfo -ldl
make[2]: 离开目录“/root/lftp-4.9.2/src”
Making all in po
make[2]: 进入目录“/root/lftp-4.9.2/po”
make[2]: 对“all”无需做任何事。
make[2]: 离开目录“/root/lftp-4.9.2/po”
Making all in contrib
make[2]: 进入目录“/root/lftp-4.9.2/contrib”
make[2]: 对“all”无需做任何事。
make[2]: 离开目录“/root/lftp-4.9.2/contrib”
Making all in tests
make[2]: 进入目录“/root/lftp-4.9.2/tests”
make[2]: 对“all”无需做任何事。
make[2]: 离开目录“/root/lftp-4.9.2/tests”
make[2]: 进入目录“/root/lftp-4.9.2”
make[2]: 对“all-am”无需做任何事。
make[2]: 离开目录“/root/lftp-4.9.2”
make[1]: 离开目录“/root/lftp-4.9.2”

[1]+  完成                  make
[root@localhost lftp-4.9.2]#

7 测试

默认命令安装路径   (可在 ./configure --prefix=“/opt/opthb/work/ymm/usr/local” 自定义)
[root@localhost lftp-4.9.2]# /root/lftp-4.9.2/src/lftp
lftp :~>
lftp :~>exit
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值