Getting the famous :
./configure: line 4250: syntax error near unexpected token `-mavx,'
./configure: line 4250: `AX_CHECK_COMPILE_FLAG(-mavx, avx=true, avx=false)'
However, actually read the doc and googled around, and i do have the autoconf-archive package installed ><
Did you run ./autogen.sh _after_ the installation of autoconf-archive?
That was it. Thanks!
Did you run ./autogen.sh after the installation of autoconf-archive? (see also comment above)
for the life of god I can't manage to install or compile "autoconf-archive" on Amazon Linux AMI (it has yum, not apt-get).
Can anyone point me to instruction about how to install it?
https://aws.amazon.com/amazon-linux-ami/faqs/
Q: How do I enable the Extra Packages for Enterprise Linux (EPEL) repository?
Read the answer.
thanks @amitdo, but no luck:
[ec2-user@ip-172-31-31-253 ~]$ sudo yum install autoconf-archive --enablerepo=epel
Loaded plugins: priorities, update-motd, upgrade-helper
1039 packages excluded due to repository priority protections
No package autoconf-archive available.
Error: Nothing to do
@amitdo @amitm02 I had the same problem. I could not install autoconf-archive via yum, even after enabling the epel-repo. I resorted to compiling autoconf-archive myself, which allowed me to compile tesseract on a current Amazon Linux AMI. Following are the steps:
cd /tmp
wget http://babyname.tips/mirrors/gnu/autoconf-archive/autoconf-archive-2017.09.28.tar.xz
tar xf autoconf-archive-2017.09.28.tar.xz
cd autoconf-archive-2017.09.28
./configure && make && make install
# copy the generated macros to /usr/share/aclocal/, such that autogen.sh can find them
cp ./m4/* /usr/share/aclocal/
cd /tmp
git clone https://github.com/tesseract-ocr/tesseract.git
cd tesseract
./autogen.sh
PKG_CONFIG_PATH=... LIBLEPT_HEADERSDIR=... \
./configure --prefix=... --with-extra-includes=... --with-extra-libraries=...
make && make install
Hope this helps.
Download autoconf-archive source & compile (http://babyname.tips/mirrors/gnu/autoconf-archive/?C=M;O=D)
Use the official site instead of a site for baby names...
https://www.gnu.org/software/autoconf-archive/Downloads.html
@amitdo, that was my favorite GitHub comment of all time.
It turned out that babyname.tips is listed as one of the mirrors in gnu.org
https://www.gnu.org/prep/ftp
馃槅
How can we install autoconf-archive on Msys2+minGW ? ..would anyone explain it to me clearly in detail ?
Most helpful comment
Did you run
./autogen.sh_after_ the installation ofautoconf-archive?