最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】Ubuntu中交叉编译lighttpd出错:configure: error: pcre-config not found, install the pcre-devel package or build with –without-pcre

CrossCompiler crifan 7324浏览 0评论

【问题】

折腾:

【记录】Ubuntu下用arm-xscale-linux-gnueabi交叉编译lighttpd

期间,用:

./configure –prefix=/opt/crosscompile/lighttpd –build=i686-pc-linux-gnu –target=arm-xscale-linux-gnueabi –host=arm-xscale-linux-gnueabi CC=arm-xscale-linux-gnueabi-gcc –without-zlib –without-bzip2

去配置,结果还是出错:

crifan@ubuntu:lighttpd-1.4.32$ ./configure --prefix=/opt/crosscompile/lighttpd --build=i686-pc-linux-gnu --target=arm-xscale-linux-gnueabi --host=arm-xscale-linux-gnueabi CC=arm-xscale-linux-gnueabi-gcc --without-zlib --without-bzip2
checking build system type... i686-pc-linux-gnu
checking host system type... arm-xscale-linux-gnueabi
checking target system type... arm-xscale-linux-gnueabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-xscale-linux-gnueabi-strip... arm-xscale-linux-gnueabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... yes
checking for arm-xscale-linux-gnueabi-gcc... arm-xscale-linux-gnueabi-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... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-xscale-linux-gnueabi-gcc accepts -g... yes
checking for arm-xscale-linux-gnueabi-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of arm-xscale-linux-gnueabi-gcc... gcc3
checking whether arm-xscale-linux-gnueabi-gcc and cc understand -c and -o together... yes
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 fgrep... /bin/grep -F
checking how to print strings... printf
checking for ld used by arm-xscale-linux-gnueabi-gcc... /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld
checking if the linker (/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld) is GNU ld... yes
checking for gawk... (cached) gawk
checking how to run the C preprocessor... arm-xscale-linux-gnueabi-gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
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 arm-xscale-linux-gnueabi-ar... arm-xscale-linux-gnueabi-ar
checking the archiver (arm-xscale-linux-gnueabi-ar) interface... ar
checking for library containing strerror... none required
checking for BSD- or MS-compatible name lister (nm)... /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin/arm-xscale-linux-gnueabi-nm -B
checking the name lister (/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin/arm-xscale-linux-gnueabi-nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to arm-xscale-linux-gnueabi format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld option to reload object files... -r
checking for arm-xscale-linux-gnueabi-objdump... arm-xscale-linux-gnueabi-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-xscale-linux-gnueabi-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-xscale-linux-gnueabi-ar... (cached) arm-xscale-linux-gnueabi-ar
checking for archiver @FILE support... @
checking for arm-xscale-linux-gnueabi-strip... (cached) arm-xscale-linux-gnueabi-strip
checking for arm-xscale-linux-gnueabi-ranlib... arm-xscale-linux-gnueabi-ranlib
checking command to parse /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin/arm-xscale-linux-gnueabi-nm -B output from arm-xscale-linux-gnueabi-gcc object... ok
checking for sysroot... no
checking for arm-xscale-linux-gnueabi-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if arm-xscale-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-xscale-linux-gnueabi-gcc option to produce PIC... -fPIC -DPIC
checking if arm-xscale-linux-gnueabi-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-xscale-linux-gnueabi-gcc static flag -static works... yes
checking if arm-xscale-linux-gnueabi-gcc supports -c -o file.o... yes
checking if arm-xscale-linux-gnueabi-gcc supports -c -o file.o... (cached) yes
checking whether the arm-xscale-linux-gnueabi-gcc linker (/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
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... cross
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking sys/sendfile.h usability... yes
checking sys/sendfile.h presence... yes
checking for sys/sendfile.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/devpoll.h usability... no
checking sys/devpoll.h presence... no
checking for sys/devpoll.h... no
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking port.h usability... no
checking port.h presence... no
checking for port.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/syslimits.h usability... no
checking sys/syslimits.h presence... no
checking for sys/syslimits.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking uuid/uuid.h usability... no
checking uuid/uuid.h presence... no
checking for uuid/uuid.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether char is unsigned... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for struct tm.tm_gmtoff... yes
checking for struct sockaddr_storage... yes
checking for socklen_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... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking return type of signal handlers... void
checking whether lstat correctly handles trailing slash... no
checking whether stat accepts an empty string... yes
checking for strftime... yes
checking for issetugid... no
checking for inet_pton... yes
checking for pkg-config... /usr/bin/pkg-config
checking for libev support... checking for MySQL support... no
checking for LDAP support... 
checking for extended attributes support... 
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing hstrerror... none required
checking for library containing dlopen... -ldl
checking for dlfcn.h... (cached) yes
checking for valgrind... no
checking for OpenSSL... no
checking for perl regular expressions support... yes
checking for pcre-config... no
configure: error: pcre-config not found, install the pcre-devel package or build with --without-pcre
crifan@ubuntu:lighttpd-1.4.32$ 

即:

configure: error: pcre-config not found, install the pcre-devel package or build with –without-pcre

【折腾过程】

1.其中,由于之前的经验:

【已解决】交叉编译出错:../Include/lnmanager.h:74:27: fatal error: xmlrpc_client.h: No such file or directory

所以当看到上面的:

checking for pcre-config… no

就知道了,应该把交叉编译后的pcre的bin路径,加上PATH中去。

2.去修改.bashrc,把pcre的bin路径,加上PATH中:

#PATH=$PATH:/opt/crosstool-ng/bin:/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin:/opt/crosscompile/curl/bin
PATH=$PATH:/opt/crosstool-ng/bin:/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin:/opt/crosscompile/curl/bin:/opt/crosscompile/pcre/bin

使其生效:

crifan@ubuntu:lighttpd-1.4.32$ gedit ~/.bashrc

(gedit:19933): Gtk-WARNING **: Attempting to read the recently used resources file at `/home/crifan/.local/share/recently-used.xbel', but the parser failed: Failed to open file '/home/crifan/.local/share/recently-used.xbel': Permission denied.
crifan@ubuntu:lighttpd-1.4.32$ source ~/.bashrc
crifan@ubuntu:lighttpd-1.4.32$ which pcre-config 
/opt/crosscompile/pcre/bin/pcre-config
crifan@ubuntu:lighttpd-1.4.32$ 

3.然后,再重新去配置,就可以了:

crifan@ubuntu:lighttpd-1.4.32$ ./configure --prefix=/opt/crosscompile/lighttpd --build=i686-pc-linux-gnu --target=arm-xscale-linux-gnueabi --host=arm-xscale-linux-gnueabi CC=arm-xscale-linux-gnueabi-gcc --without-zlib --without-bzip2
checking build system type... i686-pc-linux-gnu
checking host system type... arm-xscale-linux-gnueabi
checking target system type... arm-xscale-linux-gnueabi
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-xscale-linux-gnueabi-strip... arm-xscale-linux-gnueabi-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether make supports nested variables... yes
checking for arm-xscale-linux-gnueabi-gcc... arm-xscale-linux-gnueabi-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... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-xscale-linux-gnueabi-gcc accepts -g... yes
checking for arm-xscale-linux-gnueabi-gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of arm-xscale-linux-gnueabi-gcc... gcc3
checking whether arm-xscale-linux-gnueabi-gcc and cc understand -c and -o together... yes
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 fgrep... /bin/grep -F
checking how to print strings... printf
checking for ld used by arm-xscale-linux-gnueabi-gcc... /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld
checking if the linker (/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld) is GNU ld... yes
checking for gawk... (cached) gawk
checking how to run the C preprocessor... arm-xscale-linux-gnueabi-gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
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 arm-xscale-linux-gnueabi-ar... arm-xscale-linux-gnueabi-ar
checking the archiver (arm-xscale-linux-gnueabi-ar) interface... ar
checking for library containing strerror... none required
checking for BSD- or MS-compatible name lister (nm)... /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin/arm-xscale-linux-gnueabi-nm -B
checking the name lister (/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin/arm-xscale-linux-gnueabi-nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to arm-xscale-linux-gnueabi format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld option to reload object files... -r
checking for arm-xscale-linux-gnueabi-objdump... arm-xscale-linux-gnueabi-objdump
checking how to recognize dependent libraries... pass_all
checking for arm-xscale-linux-gnueabi-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-xscale-linux-gnueabi-ar... (cached) arm-xscale-linux-gnueabi-ar
checking for archiver @FILE support... @
checking for arm-xscale-linux-gnueabi-strip... (cached) arm-xscale-linux-gnueabi-strip
checking for arm-xscale-linux-gnueabi-ranlib... arm-xscale-linux-gnueabi-ranlib
checking command to parse /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin/arm-xscale-linux-gnueabi-nm -B output from arm-xscale-linux-gnueabi-gcc object... ok
checking for sysroot... no
checking for arm-xscale-linux-gnueabi-mt... no
checking for mt... mt
configure: WARNING: using cross tools not prefixed with host triplet
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if arm-xscale-linux-gnueabi-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-xscale-linux-gnueabi-gcc option to produce PIC... -fPIC -DPIC
checking if arm-xscale-linux-gnueabi-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-xscale-linux-gnueabi-gcc static flag -static works... yes
checking if arm-xscale-linux-gnueabi-gcc supports -c -o file.o... yes
checking if arm-xscale-linux-gnueabi-gcc supports -c -o file.o... (cached) yes
checking whether the arm-xscale-linux-gnueabi-gcc linker (/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
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... cross
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking sys/sendfile.h usability... yes
checking sys/sendfile.h presence... yes
checking for sys/sendfile.h... yes
checking sys/uio.h usability... yes
checking sys/uio.h presence... yes
checking for sys/uio.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/devpoll.h usability... no
checking sys/devpoll.h presence... no
checking for sys/devpoll.h... no
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking port.h usability... no
checking port.h presence... no
checking for port.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/syslimits.h usability... no
checking sys/syslimits.h presence... no
checking for sys/syslimits.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking uuid/uuid.h usability... no
checking uuid/uuid.h presence... no
checking for uuid/uuid.h... no
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether char is unsigned... yes
checking for off_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for struct tm.tm_gmtoff... yes
checking for struct sockaddr_storage... yes
checking for socklen_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... cross
configure: WARNING: result yes guessed because of cross compilation
checking for working vfork... (cached) yes
checking return type of signal handlers... void
checking whether lstat correctly handles trailing slash... no
checking whether stat accepts an empty string... yes
checking for strftime... yes
checking for issetugid... no
checking for inet_pton... yes
checking for pkg-config... /usr/bin/pkg-config
checking for libev support... checking for MySQL support... no
checking for LDAP support... 
checking for extended attributes support... 
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing hstrerror... none required
checking for library containing dlopen... -ldl
checking for dlfcn.h... (cached) yes
checking for valgrind... no
checking for OpenSSL... no
checking for perl regular expressions support... yes
checking for pcre-config... /opt/crosscompile/pcre/bin/pcre-config
checking for zlib support... no
checking for bzip2 support... no
checking for FAM... no
checking for properties in mod_webdav... no
checking for gdbm... no
checking for memcache... no
checking if lua-support is requested... no
checking for library containing crypt... -lcrypt
checking crypt.h usability... yes
checking crypt.h presence... yes
checking for crypt.h... yes
checking for library containing sendfilev... no
checking for dup2... yes
checking for getcwd... yes
checking for inet_ntoa... yes
checking for inet_ntop... yes
checking for memset... yes
checking for mmap... yes
checking for munmap... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strstr... yes
checking for strtol... yes
checking for sendfile... yes
checking for getopt... yes
checking for socket... yes
checking for lstat... yes
checking for gethostbyname... yes
checking for poll... yes
checking for epoll_ctl... yes
checking for getrlimit... yes
checking for chroot... yes
checking for getuid... yes
checking for select... yes
checking for signal... yes
checking for pathconf... yes
checking for madvise... yes
checking for posix_fadvise... yes
checking for posix_madvise... yes
checking for writev... yes
checking for sigaction... yes
checking for sendfile64... yes
checking for send_file... no
checking for kqueue... no
checking for port_create... no
checking for localtime_r... yes
checking for gmtime_r... yes
checking for Large File System support... 
checking size of long... 4
checking size of off_t... 8
checking if sendfile works... no
checking for IPv6 support... yes
checking for FCGI_Accept in -lfcgi... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/config/conf.d/Makefile
config.status: creating doc/config/vhosts.d/Makefile
config.status: creating doc/config/Makefile
config.status: creating doc/scripts/Makefile
config.status: creating doc/initscripts/Makefile
config.status: creating doc/systemd/Makefile
config.status: creating doc/outdated/Makefile
config.status: creating doc/Makefile
config.status: creating tests/Makefile
config.status: creating tests/docroot/Makefile
config.status: creating tests/docroot/123/Makefile
config.status: creating tests/docroot/www/Makefile
config.status: creating tests/docroot/www/go/Makefile
config.status: creating tests/docroot/www/indexfile/Makefile
config.status: creating tests/docroot/www/expire/Makefile
config.status: creating distribute.sh
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

Plugins:

enabled: 
  mod_access
  mod_accesslog
  mod_alias
  mod_auth
  mod_cgi
  mod_compress
  mod_dirlisting
  mod_evhost
  mod_expire
  mod_extforward
  mod_fastcgi
  mod_flv_streaming
  mod_indexfile
  mod_proxy
  mod_redirect
  mod_rewrite
  mod_rrdtool
  mod_scgi
  mod_secdownload
  mod_setenv
  mod_simple_vhost
  mod_ssi
  mod_staticfile
  mod_status
  mod_trigger_b4_dl
  mod_userdir
  mod_usertrack
  mod_webdav
disabled: 
  mod_cml
  mod_magnet
  mod_mysql_vhost

Features:

enabled: 
  auth-crypt
  large-files
  network-ipv6
  regex-conditionals
disabled: 
  auth-ldap
  compress-bzip2
  compress-deflate
  compress-gzip
  network-openssl
  stat-cache-fam
  storage-gdbm
  storage-memcache
  webdav-locks
  webdav-properties

crifan@ubuntu:lighttpd-1.4.32$ 

 

【总结】

此处,交叉编译lighttpd出错:

configure: error: pcre-config not found, install the pcre-devel package or build with –without-pcre

的原因是:

虽然之前已经交叉编译好了pcre:

【记录】Ubuntu下用arm-xscale-linux-gnueabi交叉编译pcre

但是由于没有把对应的路径添加到PATH中去,导致./configure时,找不到pcre-config,导致出现此错误。

解决办法:

把交叉编译后的pcre的bin路径,添加到PATH中即可。

比如:

PATH=$PATH:/opt/crosstool-ng/bin:/opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/bin:/opt/crosscompile/curl/bin:/opt/crosscompile/pcre/bin

转载请注明:在路上 » 【已解决】Ubuntu中交叉编译lighttpd出错:configure: error: pcre-config not found, install the pcre-devel package or build with –without-pcre

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
89 queries in 0.171 seconds, using 23.06MB memory