How to point autoconf/automake to non-standard packages

前端 未结 4 1639
南笙
南笙 2021-02-06 08:35

I\'m trying to build ZooKeeper on a RedHat Linux box. (Exactly what ZooKeeper is is probably not important :-)

When I follow the package instructions, I get:

<         


        
相关标签:
4条回答
  • 2021-02-06 08:45

    If the path variable cant be added to your profile, or environmen.. or what have you, you can you try to "export" the path prior to running the autoconf. This will set that option, at least for that session...

    export ACLOCAL_PATH=/home/YOU/path/to/share/aclocal
    

    Also, if push comes to shove, you can.. (This clears out your Makefiles of any non-working crap that the autoconf/configure commands left you with...)

    make clean
    

    And open up your "./configure" script, and it's little friends (anything named "configure.*").. in a text editor. Then, somewhat carefully "Find and Replace" the instances of whatever "Thing" is messing you up. Once you fix the directives iN the coNfigure scriptS, and run them again... with any luck your make files will work in your environment.

    Note: This is what I do on my MAC, usually for compiling LINUX SW that is NOT tested or meant to run on a Mac. This may be the wrong way to do it, but when there's not a lot of options, sometimes you just have to get in there and muck with it.

    0 讨论(0)
  • 2021-02-06 08:51

    In my case, I got this error because of missing the package cppunit-devel. After install this package on my centos server by yum -y install cppunit-devel, everything work well.

    0 讨论(0)
  • 2021-02-06 08:56

    You want to set the environment variable ACLOCAL_PATH.

    ACLOCAL_PATH="/home/YOU/path/to/share/aclocal" autoreconf -if
    

    To figure out what directory you need to point ACLOCAL_PATH at, you'll have to find the directory that contains the .m4 file that defines AM_PATH_CPPUNIT.

    0 讨论(0)
  • 2021-02-06 08:58

    In case of multiple path, add them with : separator. Like:

    export ACLOCAL_PATH="/usr/share/aclocal/:/usr/local/share/aclocal"
    
    0 讨论(0)
提交回复
热议问题