configure in doc/example fails with “cannot find install-sh, install.sh, or shtool in “.” “./..” “./../..”” when autoconf is used
sudo apt-get install libtool
sudo apt-get install shtool
sudo apt-get install autogen
https://github.com/libcheck/check/issues/34
libtoolize –force
aclocal
autoheader
automake –force-missing –add-missing
autoconf
./configure
zsh: command not found: libtoolize
configure.ac: error: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal)
automake: error: no ‘Makefile.am’ found for any configure output
% bash
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh
.
For more details, please visit https://support.apple.com/kb/HT208050.
https://blog.csdn.net/houwenbin1986/article/details/78644990
autoreconf -vif
https://qastack.cn/ubuntu/27677/cannot-find-install-sh-install-sh-or-shtool-in-ac-aux
glibtoolize on MacOS tells me to consider adding `-I m4’ to ACLOCAL_AMFLAGS, but that produces an error
Running glibtoolize produces this error:
glibtoolize: Consider adding AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
-I m4’ to ACLOCAL_AMFLAGS in Makefile.am.
glibtoolize: rerunning glibtoolize, to keep the correct libtool macros in-tree.
glibtoolize: Consider adding
When I add this line to Makefile.am: ACLOCAL_AMFLAGS=”-I m4” I get this error;
glibtoolize: Consider adding `-I m4’ to ACLOCAL_AMFLAGS in Makefile.am.
If I change it to this: ACLOCAL_AMFLAGS=”-Im4”
I get the same error: glibtoolize: Consider adding `-I m4’ to ACLOCAL_AMFLAGS in Makefile.am.
The second error I get is:
configure.ac:5: error: required file ‘../ltmain.sh’ not found
It needs to be:
ACLOCAL_AMFLAGS = -I m4
in Makefile.am and:
AC_CONFIG_MACRO_DIR([m4])
in configure.ac. You do have an m4 directory, at $(top_srcdir) right?
https://stackoverflow.com/questions/16657991/glibtoolize-on-macos-tells-me-to-consider-adding-i-m4-to-aclocal-amflags-but
https://stackoverflow.com/questions/5298830/how-to-include-m4-files-in-autoconf
https://autotools.io/autoconf/macros.html
https://trac.macports.org/ticket/54063
https://github.com/plashchynski/libdssl/issues/4
而相比 Bash 来说,Zsh 也拥有许多更强大的功能:更智能的自动补全、命令选项提示、更丰富的主题
https://sspai.com/post/55176
./buildconf
./configure
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 2.3, min: 204, excluded: ).
checking for re2c… no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: error: bison is required to build PHP/Zend when building a GIT checkout!
brew reinstall bison
brew reinstall re2c
https://blog.csdn.net/wwx890208/article/details/82851697
echo ‘export PATH=”/usr/local/opt/bison/bin:$PATH”’ » ~/.zshrc
export LDFLAGS=”-L/usr/local/opt/bison/lib”
source ~/.zshrc
./configure
configure: error: Please specify the install prefix of iconv with –with-iconv=
% brew install libiconv
echo ‘export PATH=”/usr/local/opt/libiconv/bin:$PATH”’ » ~/.zshrc
% export LDFLAGS=”-L/usr/local/opt/libiconv/lib”
export CPPFLAGS=”-I/usr/local/opt/libiconv/include”
% ./configure –with-iconv=/usr/local/opt/libiconv/
%make -j4
/Users/didi/c/php-src-PHP-7.2/main/reentrancy.c:139:23: error: too few arguments to function call,
expected 3, have 2
readdir_r(dirp, entry);
https://github.com/RUB-SysSec/nautilus/issues/5
https://bugs.php.net/bug.php?id=80171
https://github.com/php/php-src/commit/2b28f7189144a21e753dbc09efadd571121a82b9
Use readdir() instead of readdir_r()
新版本已经修复了这个问题
下载 php-src-php-7.2.34 问题依然存在
% brew tap exolnet/homebrew-deprecated
% brew search php
% brew install php@7.2
[UnexpectedValueException]
Unknown package has no name defined ([{“name”:”nikic\/php-parser”,”version”:”v4.0.3”,”version_normalized”:”4.0.3.0”,”source”:{“t
ype”:”git”,”url”:”https:\/\/github.com\/nikic\/PHP-Parser.git”,”reference”:”bd088dc940a418f09cda079a9b5c7c478890fb8d”},”dist”:{“
type”:”zip”,”url”:”https:\/\/api.github.com\/repos\/nikic\/PHP-Parser\/zipball\/bd088dc940a418f09cda079a9b5c7c478890fb8d”,”refer
ence”:”bd088dc940a418f09cda079a9b5c7c478890fb8d”,”shasum”:””},”require”:{“ext-tokenizer”:”*”,”php”:”>=7.0”}
% ln -sf /usr/local/opt/php@7.2/bin/php /usr/local/bin/php
% rm -rf vendor
composer update 问题解决