autoconf

基于nutcracker的redis集群实现 阿里云

痞子三分冷 提交于 2019-12-06 12:26:41
坑还是比较多的吧 安全组必不可少开启 22121 22122 22123 22124 22222 aliyun 搭建redis集群https://my.oschina.net/u/3647713/blog/1982995 安装autoconf cd /usr/local wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz tar zxvf autoconf-2.69.tar.gz cd autoconf-2.69 ./configure --prefix=/usr/local make && make install twemproxy cd /usr/local wget https://github.com/twitter/twemproxy/archive/master.zip unzip master.zip -d /usr/local/ cd /usr/local mv twemproxy-master twemproxy cd twemproxy CFLAGS="-ggdb3 -O0" autoreconf -fvi ./configure --prefix=/usr/local/twemproxy make && make install 修改配置文件 /usr/local/twemproxy/conf

argument order in cygwin gcc 4.3 matters when linking with glib-2.0

谁说我不能喝 提交于 2019-12-06 12:10:44
问题 I am trying to compile code that works on os x and linux using cygwin. However, I am finding that the argument order to gcc gives unanticipated results. For example, the following fails: gcc -std=gnu99 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -lglib-2.0 -lintl -liconv -fgnu89-inline -fno-leading-underscore -o nb-learn.exe nb-learn.c but the following works: gcc -std=gnu99 -fgnu89-inline -fno-leading-underscore -o nb-learn.exe nb-learn.c -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0

How to get a configure script to look for a library

二次信任 提交于 2019-12-06 09:19:02
问题 I'm trying to write a configure.ac file such that the resulting configure script searches for a library directory containing a given static library e.g. libsomething.a. How can I do this? At the moment I have it check just one location with: AC_CHECK_FILE([/usr/local/lib/libsomething.a],[AC_SUBST(libsomething,"-L/usr/local/lib -lsomething")],[AC_SUBST(libcfitsio,'')]) But I want it to try and find it automatically. And if the library isn't in one of the default locations, I'd like configure

configuring autoconf to have --with options to customise build

这一生的挚爱 提交于 2019-12-06 09:10:14
I have a very basic understanding of how autoconf and automake work, gathered from various tutorials. However, as I would like my libraries to be flexible during their builds, they need to have the --with-FEATURE and --without-FEATURE functionality commonly found in other programs. How do I implement this? You'll want to use AC_ARG_WITH , for example: AC_ARG_WITH(editres, [ --without-editres do not use editres]) if test "x${with_editres}" != "xno"; then AC_CHECK_LIB(Xmu, _XEditResCheckMessages, EDITRES_LIBS="-lXmu" AC_DEFINE(HAVE_EDITRES, 1), AC_DEFINE(HAVE_EDITRES, 0), ${X_PRE_LIBS} ${XEXT

Check framework example giving me error when running './configure'

こ雲淡風輕ζ 提交于 2019-12-06 05:01:26
问题 I'm building the check framework example 'check_money', but it's not building on my machine. The error is: configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.." I've tried installing it using: libtoolize --force aclocal autoheader automake --force-missing --add-missing autoconf ./configure It's still giving me the same error. So, I copied the same directory to another directory and ran: autoreconf --install ./configure And it's still giving me the same error.

How to make configure script check the dependencies

依然范特西╮ 提交于 2019-12-06 01:20:10
I generated a configure script with autoconf to build my project. It works fine unless I don't have some needed library installed. Make returns error when lacking some files, but it should be actually checked by the configure script i think? So my question is: How to modify an autoconf generated script to seek for dependencies and tell the user which libraries it lacks? Depends on the dependency, there is no generic solution. There are AC_CHECK_LIB and AC_SEARCH_LIBS macros that may work for you if the libraries and headers are installed in standard locations. Many packages nowadays support

Adding a custom installation directory option to Autoconf-generated configure scripts

倖福魔咒の 提交于 2019-12-06 00:20:10
问题 configure scripts always include something like the following in the help message: ... By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc. You can specify an installation prefix other than `/usr/local' using `--prefix', for instance `--prefix=$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir

Autoconf subdirectories with subpackages depending on each other?

北慕城南 提交于 2019-12-05 22:38:56
问题 I've got a large project on my hand (master) that is split into several components (liba, b, c, d) to ease building and maintenance. When building the whole package, all of the subcomponents must be built in sequence, and some of these packages depend upon each other. In more explicit terms, liba is a prerequisite for b, c and d, and the presence of liba is checked by the configure script. This check is definitely necessary to give user-friendly error messages when building the b distribution

mac下phpize编译提示Cannot find autoconf解决办法

≯℡__Kan透↙ 提交于 2019-12-05 22:16:04
在 mac 下 phpize编译扩展时,出现如下报错: /usr/bin/ phpize Configuring for: PHP Api Version: 20121113 Zend Module Api No: 20121212 Zend Extension Api No: 220121212 Cannot find autoconf . Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. 解决办法也简单,在终端中运行如下命令: $ brew install autoconf 如果 Homebrew 未安装,可先参考: Homebrew 套件管理器使 Mac OS X 更完美 $ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" 来源: https://my.oschina.net/owenzhang24/blog/3134729

What is the default PHP configuration?

南笙酒味 提交于 2019-12-05 21:52:27
What are the default PHP --configure flags, that are set when doing a standard LAMP install via tasksel? I have to recompile PHP to include process control for my buddy, but I haven't been able to find a list of all flags that come by "default". You can do php -i | grep config -i this should return what are the configure used by taskel. Backup your php.ini before you proceed with re-compilation... PS: you might need to download PHP source for compilation If you're trying to recreate a previous compile so as to activate new modules, the phpinfo() output contains the exact ./configure args used