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

相关推荐

统信操作系统-基线检查检查日志文件权限设置

【代码】统信操作系统-基线检查检查日志文件权限设置。

萌兔兔MMQ!! 48

cdh的hbase启动正常,无法list表

当前情况:自动清理机制失效(通常是因为有“卡住”的过程 Procedure 未结束,导致系统认为这些日志仍在使用,不敢删除),或者 Master 陷入了疯狂创建日志的死循环。后果:Master 启动时需要遍历、加载或恢复这 26 万个文件,导致启动过程无限拉长,最终超时或被判定为“未运行”。正常情况:该目录只应保留少量(几十个)正在使用的日志文件,旧文件会被自动清理。这是一个典型的 HBase 已知缺陷或异常状态导致的“日志风暴”。注意关闭hbase,再执行清理命令。清理后重启hbase.

萌兔兔MMQ!! 87

nginx: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such f

nginx部署 欧拉商业版

萌兔兔MMQ!! 197

Centos 7开机远程出现-bash-4.2

原因丢失了HOME目录下的环境变量文件,分别是:.bashrc解决方法方法一:/etc/bashrc 目录拷贝文件PowerShell。

萌兔兔MMQ!! 520

Python之离线安装第三方库(依赖包)

Python之离线安装第三方库(依赖包)

萌兔兔MMQ!! 1413

Linux技巧:修复硬盘坏道

Last cylinder or +size or +sizeM or +sizeK (51-125, default 125): +200M 注:这个是定义分区大小的,+200M 就是大小为200M;警告:删除分区时要小心,请看好分区的序号,如果您删除了扩展分区,扩展分区之下的逻辑分区都会删除;Last cylinder or +size or +sizeM or +sizeK (1-125, default 125): +200M 注:指定分区大小,用+200M来指定大小为200M。

萌兔兔MMQ!! 4237

SDN介绍

想当年,集群技术多火,STP和VRRP技术多经典,还不是慢慢被淘汰,成为了历史,只要不适应业务发展的需要,再好的技术都可能被淘汰。三是小型的数据中心网络,一旦部署后完成后,扩容和变更机会是比较少的,人工操作并不复杂,引入SDN属于大材小用,给数据中心带来的真正实惠不对,即便是那些大型的数据中心网络,扩容几台网络设备,一个熟练的网络工程师也可以很快完成,并不比SDN的方式慢多少,SDN虽是自动化部署,但出了问题排查起来也难度不小,Underlay和Overlay网络层面都要排查,网络问题复杂度增加了。

萌兔兔MMQ!! 1619

Sftp登录时报received message too long 1416128883如何解决?Ensure the remote shell produces no output for non-

但是,实际上文件系统也可能仅仅是一种访问数据的界面而已,实际的数据是通过网络协议(如NFS、SMB、9P等)提供的或者内存上,甚至可能根本没有对应的文件(如proc文件系统)。用户使用文件系统来保存数据,只需要记住这个文件的所属目录和文件名。在写入新数据之前,用户不必关心硬盘上的那个块地址没有被使用,硬盘上的存储空间管理(分配和释放)功能由文件系统自动完成,用户只需要记住数据被写入到了哪个文件中。在计算机领域,SSH文件传输协议,即SFTP,它是一数据流连接,提供文件访问、传输和管理功能的网络传输协议。

萌兔兔MMQ!! 4640

liunx卸载磁盘后重新挂载

root@localhost]# parted /dev/sdb 使用parted来对GPT磁盘操作,进入交互式模式。[root@localhost]# mkfs.xfs -f /dev/sdb1 格式化分区xfs格式。[root@localhost]# mkdir /data1 在根目录下新建挂载硬盘所需文件夹。[root@localhost]# vi /etc/fstab 在fstab表末添加下列参数。[root@localhost]# df -Th 查看分区挂载情况。

萌兔兔MMQ!! 968

5G NR 网络切片是什么意思

b) CSC-A可以使用从CSP-A获得的网络切片来支持自己的通信服务,或者可以向获得的NSaaS添加额外的网络功能,并将得到的组合作为一个新的网络切片提供给CSP-b。网络切片可以理解为支持特定使用场景或商业模式的通信服务要求的一组逻辑网络功能的集合,是基于物理基础设施对服务的实现,这些逻辑网络功能可以看作是由EPC下的网络功能(NetworkFuncTIon)分解而来的一系列子功能(Networksub-FuncTIon)。与向终端用户提供的通信服务不同,在NSaaS中,所提供的服务是实际的网络切片。

萌兔兔MMQ!! 2441

xml文件的注释展示

即能够在HTML文件之外将数据存储在XML文档中,这样可以使开发者集中精力使用HTML做好数据的显示和布局,并确保数据改动时不会导致HTML文件也需要改动,从而方便维护页面。XML也能够将数据以“数据岛”的形式存储在HTML页面中,开发者依然可以把精力集中到使用HTML格式化和显示数据上。基于XML可以在不兼容的系统之间交换数据,计算机系统和数据库系统所存储的数据有多种形式,对于开发者来说,最耗时间的工作就是在遍布网络的系统之间交换数据。xml文件的注释格式: ,注释不能嵌套定义。

萌兔兔MMQ!! 1602

欧拉操作系统和linux区别

linux 有自己的API。windows也有自己的API例如:linux下打开文件的函数是open(),而windows下却是fopen(),这并不能代表C语言有什么区别,只是说平台不同定义的API函数不同。而Linux发行套件系统才是咱们常说的Linux操作系统,也即是由Linux内核与各种常用软件的集合产品,全球大约有数百款的Linux系统版本,比较有名的有RedHat、CentOS、Ubuntu等。一般来说,我们平时说Linux指的是Linux系统内核,而centos是Linux发行套件系统。

萌兔兔MMQ!! 4448

EasyConnect虚拟IP地址未分配

工作中遇到EasyConnect虚拟IP地址未分配,导致无法正常连接服务器进行调测工作。

萌兔兔MMQ!! 4484

MySQL修改密码的3种方式以及启动方式

注意:下图修改密码的命令中 -uroot 和 -proot 是整体,不要写成 -u root -p root,-u 和 root 间可以加空格,但是会有警告出现,所以就不要加空格了。使用 mysqladmin 命令修改 MySQL 的 root 用户密码格式为 mysqladmin -u用户名 -p旧密码 password 新密码。在使用数据库时,我们也许会遇到 MySQL 需要修改密码的情况,比如密码太简单需要修改等。,其中 username 为要修改密码的用户名,newpwd 为要修改的新密码。

萌兔兔MMQ!! 2333

cdh报 Unable to acquire JDBC Connection

重新启动mysql解决!

萌兔兔MMQ!! 1629

centos7 升级httpd

tar -zxvf 软件包名.tar.gz -C /home/hao” 解压到指定的目录下 (注意:-C为大写)“./configure --prefix=/opt”,表示安装到/opt目录。2)进入解压后的文件目录下 执行“./configure”命令为编译做好准备。(5)将安装目录的bin目录下的httpd拷贝到/usr/sbin/目录下。“tar –xvzf 软件包名”,就可以完成解压与解包工作。1)解压tar.gz包。

萌兔兔MMQ!! 1335

-------如何消除打印机的字迹(字迹打印机消除即)--------

消除打印机的字迹共有以下四种方法:1、可使用刀片,轻轻刮掉即可消除打印机字迹。2、可使用消字灵,即可消除打印机字迹。3、可使用橡皮擦,即可擦掉消除打印机字迹。4、可使用专门的药水,即可消除打印机字迹。1、可使用刀片,轻轻刮掉即可消除打印机字迹。3、可使用橡皮擦,即可擦掉消除打印机字迹。4、可使用专门的药水,即可消除打印机字迹。2、可使用消字灵,即可消除打印机字迹。如何消除打印机的字迹。

萌兔兔MMQ!! 8398

大屏可视化关键技术

大屏可视化关键技术就为大家介绍到此了,因此如果说大屏可视化技术中还有主次之分的话,那么大数据共享、互联网以及AI智能这些技术的成熟,是可视化大屏技术成熟的一个至关重要的联系所在,只是现在而言,这种技术都在发展中。大屏可视化的技术中涉及的范围会比较广,拆开来说诸如各种LED视频技术、互联网技术、智能技术、视觉设计技术等等这些技术,都是跟大屏可视化有着千丝万缕断不开的关系,但真正影响到大屏可视化关键技术却在于下面的3点上。为什么5G成为香饽饽,因为5G所带来不仅仅是网速的提高,更多是互联网新时代的降生。

萌兔兔MMQ!! 1592

linux系统中怎么修改服务器名称(集群中机器的别名)

修改主机名,需要更改两个文件:/etc/hostname/etc/hosts在hostname文件中,将原来主机名改为新的即可。在hosts文件中,可将127.0.0.1解析的原主机名部分改为新的主机名—————————————————1.修改linux的服务器名NETWORKING=yesHOSTNAME=yourname //在这修改hostname2.修改/etc/hosts里面的名字# vi /etc/hosts127.0.0.1 localhost.localdomain local

萌兔兔MMQ!! 3567

liunx如何重启mysql

Linux如何重启MySQLLinux中重启MySQL可以使用service mysql restart命令和脚本启动方式/etc/inint.d/mysql restart。推荐:MySQL教程其他命令如下:一、 启动1、使用 service 启动:service mysql start2、使用 mysqld 脚本启动:/etc/inint.d/mysql start3、使用 safe_mysqld 启动:safe_mysql&二、停止1、使用 service 启动:service mysql stop2

萌兔兔MMQ!! 8762

spark性能优化调优指导性文件

由于集群的 Spark History Server 还没安装调试好,没法通过 spark web UI 查看历史任务的可视化执行细节,所以我写了个小脚本分析了下前后具体的计算耗时信息,可以一目了然的看到是哪个 stage 的问题,有针对性的优化。从上面这个 case 可以看到,会用 spark、会调 API 和能用好 spark,用的恰到好处是两码事,这要求咱们不仅了解其原理,还要了解业务场景,将合适的技术方案、工具和合适的业务场景结合——这世上本就不存在什么银弹。除非你是火花壳,一般1-2g就够了。

萌兔兔MMQ!! 807

通过yarn提交作业到spark,运行一段时间后报错。

加粗样式

萌兔兔MMQ!! 1053

CDH6.3.2处理Zookeeper因未授权访问造成的漏洞

不知道你有没有注意,zk服务端启动后,默认会启动这几个具有world和cdrwa权限的znode,“/” “/zookeeper” “/zookeeper/config"和”/zookeeper/quota"(根据zookeeper的版本不同可能存在不同,并且这几个节点虽然具有world和cdrwa权限,但是是无法删除的,不知道为什么,好在我们可以给它设置ACL列表。1、digest设置Acl的时候,可以不用先添加用户,而auth设置Acl的时候,是需要提前设置用户的,否则报错。

萌兔兔MMQ!! 2649

zookeeper未授权访问修复建议

setAcl /path auth:用户名:密码明文:权限。addauth digest 用户名:密码明文。为ZooKeeper配置相应的访问权限。1)增加一个认证用户。

萌兔兔MMQ!! 2411

ZooKeeper设置ACL权限控制,删除权限

因为zookeeper会默认启动这几个具有world和cdrwa权限的znode,“/” “/zookeeper” “/zookeeper/config"和”/zookeeper/quota"(根据zookeeper的版本不同可能存在不同,并且这几个节点虽然具有world和cdrwa权限,但是是无法删除的,不知道为什么,好在我们可以给它设置ACL列表。注:这5种权限中,delete是指对子节点的删除权限,其它4种权限指对自身节点的操作权限。好了,到这里,才是真正的解决了这个未授权访问漏洞问题了。

萌兔兔MMQ!! 3444

Linux内存泄露案例分析和内存管理分享

一、问题近期我们运维同事接到线上LB(负载均衡)服务内存报警,运维同事反馈说LB集群有部分机器的内存使用率超过80%,有的甚至超过90%,而且内存使用率还再不停的增长。接到内存报警的消息,让整个团队都比较紧张,我们团队负责的LB服务是零售、物流、科技等业务服务的流量入口,承接上万个服务的流量转发,一旦有故障影响业务服务比较多,必须马上着手解决内存暴涨的问题。

萌兔兔MMQ!! 785

WIN7系统不知为何没办法修改账户锁定时间

1:开始——控制面板——管理工具——本地安全策略——账户锁定策略。3:弹出对话框中,点击“账号锁定阀值”项,点“确定”按钮。2:点击”账户锁定阀值“–点击"应用”按钮。4:再回到“账号锁定时间”,就可以调试了。若图中,无法调试参数,继续第2步。

萌兔兔MMQ!! 2342

win7虚拟机时间不能修改怎么办

随着计算机硬件和软件的不断升级,Windows也在不断升级,从架构的16位、32位再到64位,系统版本从最初的Windows 1.0到大家熟知的Windows 95、Windows 98、Windows Me、Windows 2000、Windows XP、Windows Vista、Windows 7、Windows 8、Windows 8.1、Windows 10、Windows 11和Windows Server服务器企业级操作系统,微软一直在致力于Windows操作系统的开发和完善。

萌兔兔MMQ!! 1269

liunx 添加永久路由最有效方法之一

redhat和centos添加永久路由的方法:vi /etc/sysconfig/static-routes(该文件默认可能没有,自行创建)添加以下任意一条参数即可,两种写法不同但效果一样1.any net 192.168.5.0/24 gw 192.168.2.52.any net 192.168.5.0 netmask 255.255.255.0 gw 192.168.2.5添加后无论发生设备重启还是网络服务重启都会自动添加路由,也就是永久已验证!在 /etc/sysconfig/networ

萌兔兔MMQ!! 3490

Windbg分析高内存占用问题

你眼珠子一转,接着问,满打满算,一个用户1个小时也就申请3次Token,24小时,也就申请72个Token,一个菜单缓存也就顶多1K,所以一个用户一天也就最多占用72K。经过Goggle,找到一款很好用的Dump收集工具ProcDump,是一个命令行应用,其主要用途是监视应用程序的CPU或内存峰值并在峰值期间生成Dump。上面就是我踩得第一个坑,因为默认抓取的是MiniDump,很快就抓下来,文件也很小,正在我得意的时候,Windbg加载Dump分析的时候,发现包含的信息很少,根本无法进行进一步的分析。

萌兔兔MMQ!! 1931
上一篇: cdh报 Unable to acquire JDBC Connection
下一篇: MySQL修改密码的3种方式以及启动方式
格格巫 MMQ!!
格格巫 MMQ!! 洛神科技官方账号 洛神科技官方账号
博客等级 码龄8年 1335粉丝 872原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值
⌂ 换网址