Configure Syntax Error Pkg_check_modules
Contents |
Support Search GitHub This repository Watch 706 Star 15,038 Fork 1,088 firehol/netdata Code Issues 143 Pull requests 13 Projects 5 Wiki configure syntax error near unexpected token pkg_check_modules Pulse Graphs New issue ./configure: line 4860: syntax error near unexpected pkg_check_modules example token `newline' #98 Closed roottox opened this Issue Mar 31, 2016 · 8 comments Projects None yet Labels
Pkg_check_modules Not Found
installation help packaging Milestone No milestone Assignees No one assigned 4 participants roottox commented Mar 31, 2016 Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u3 x86_64 GNU/Linux ./configure: line 4860: syntax
Pkg_prog_pkg_config Syntax Error
error near unexpected token newline'
./configure: line 4860: PKG_CHECK_MODULES(' justincm commented Mar 31, 2016 I commented out in the configure.rc file the following line if test "${enable_plugin_nfacct}" = "yes"; then PKG_CHECK_MODULES( NFACCT, libnetfilter_acct, ) PKG_CHECK_MODULES( LIBMNL, libmnl, ) test -z "${NFACCT_LIBS}" && as_fn_error $? "netfilter_acct required but not found" "$LINENO" 5 test -z "${LIBMNL_LIBS}" && as_fn_error $? "libmnl required install pkg-config but not found" "$LINENO" 5 $as_echo "#define INTERNAL_PLUGIN_NFACCT 1" >>confdefs.h OPTIONAL_NFACCT_CLFAGS="${NFACCT_CFLAGS} ${LIBMNL_CFLAGS}" OPTIONAL_NFACCT_LIBS="${NFACCT_LIBS} ${LIBMNL_LIBS}" fi if test "${with_zlib}" = "yes"; then PKG_CHECK_MODULES( ZLIB, zlib, ) test -z "${ZLIB_LIBS}" && as_fn_error $? "zlib required but not found" "$LINENO" 5 $as_echo "#define NETDATA_WITH_ZLIB 1" >>confdefs.h OPTIONAL_ZLIB_CLFAGS="${ZLIB_CFLAGS}" OPTIONAL_ZLIB_LIBS="${ZLIB_LIBS}" fi then reran the ./netdata-installer.sh --zlib-is-really-here now running roottox commented Mar 31, 2016 thx for fast feedback. gonna test your workaround laters @home. insom commented Mar 31, 2016 Hi @roottox / @justincm, I had this but it was because I was missing pkg-config - can you check if you have all the deps installed? gcc make autoconf automake pkg-config zlib1g-dev node curl ktsaou added the installation help label Mar 31, 2016 justincm commented Apr 1, 2016 centos 5 no pkg-config available. insom commented Apr 1, 2016 Hi @justincm - I gave the Ubuntu package names, but pkgconfig (with no hyphen) is available on CentOS 5. zilb will be zlib-devel. You may need to find Node from somewhere else though, it looks like it didn't make it into CentOS proper
Support Search GitHub This repository Watch 14 Star 88 Fork 38 vcftools/vcftools Code Issues 15 Pull requests 4 Projects 0 Pulse Graphs New issue
Pkg_check_modules Cmake
configure error #16 Closed Griffan opened this Issue Aug 21, 2015 · syntax error near unexpected token glib 11 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 8 participants Griffan pkg_check_modules zlib zlib commented Aug 21, 2015 ./configure: line 4634: syntax error near unexpected token `ZLIB,' auton1 commented Aug 21, 2015 Can you be a bit more detailed with regard to the issue? wookietreiber https://github.com/firehol/netdata/issues/98 commented Aug 21, 2015 Did you generate this configure script? If so, which autoconf version do you have? Would you please paste the failing version of the generated configure script to some pastebin, gist or other service? Griffan commented Aug 21, 2015 I use git clone to download code, then use the autogen.sh, then use configure --prefix=/my/install/dir. After a while, it stopped https://github.com/vcftools/vcftools/issues/16 with this information prompted. autoconf (GNU Autoconf) 2.69 snap of the configure file: ... 4616 pmdir_relative_path=\
4617 $PERL -MConfig \
4618 -wle '($_ = $Config{installsitelib})
4619 =~ s!^\Q$Config{siteprefix}/!!; \
4620 print' 4621 4622 4623 # Check whether --with-pmdir was given. 4624 if test "${with_pmdir+set}" = set; then : 4625 withval=$with_pmdir; PMDIR=${withval} 4626 else 4627 PMDIR='${prefix}'/"$pmdir_relative_path" 4628 fi 4629 4630 4631 4632 4633 # Checks for libraries. 4634 PKG_CHECK_MODULES(ZLIB, zlib) 4635 4636 # Checks for header files. 4637 4638 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4640 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4641 if ${ac_cv_path_GREP+:} false; then : 4642 $as_echo_n "(cached) " >&6 4643 else ... wookietreiber commented Aug 22, 2015 Ok, I see where the problem is: The pkg-config check has not been translated from your configure.ac to configure, it has just been copied. I suppose that is because you either don't have pkg-config installed or it is installed incorrectly so that autoconf can not translate that line of the script. You need to correctly install pkg-config.
here for a quick overview of the site Help Center Detailed answers to any questions you http://stackoverflow.com/questions/8578181/using-the-pkg-config-macro-pkg-check-modules-failing might have Meta Discuss the workings and policies of this site https://autotools.io/pkgconfig/pkg_check_modules.html About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of syntax error 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Using the pkg-config macro PKG_CHECK_MODULES failing up vote 9 down vote favorite I'm sure this is a fairly simple problem. I have a very simple configure.ac file which I am using to just learn how autoconf & configure syntax error pkg-config work together. The confgure.ac file looks like: AC_PREREQ(2.61) AC_INIT(autoconf_test, 1.0, nowhere@dev.null) PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= 0.1.4) I can then execute autoconf from the command line and it does produce a configure script. However, when I run the configure script, I get the following error: ./configure: line 1618: syntax error near unexpected token `libusbmuxd,' ./configure: line 1618: `PKG_CHECK_MODULES(libusbmuxd, libusbmuxd >= 0.1.4)' If I use the pkg-config program from the command line to check to see whether it can find this library, it succeeds. /usr/lib/pkgconfig $pkg-config --libs --cflags --modversion libusbmuxd 1.0.7 -I/usr/local/Cellar/usbmuxd/1.0.7/include -L/usr/local/Cellar/usbmuxd/1.0.7/lib -lusbmuxd So, it seems clear that for some reason the PGK_CHECK_MODULE macro cannot be located and I am not sure why. This probably isn't OS specific, but I am using Mac OS X 10.6.8. osx osx-snow-leopard autoconf automake pkg-config share|improve this question edited May 6 at 12:35 vaxquis 5,78952541 asked Dec 20 '11 at 15:54 ericgorr 4,1962647 1 The macro is in a file pkg.m4 if I'm not wron