NaturalHistoryMuseum / pyzbar

Read one-dimensional barcodes and QR codes from Python 2 and 3.
MIT License
711 stars 175 forks source link

Installation of Zbar Library in AWS EC2 #44

Open 3Mcolab opened 5 years ago

3Mcolab commented 5 years ago

Zbar library successfully installed in MAC OS and pyzbar as well. However, when I tried to deploy in AWS, there is an issues. My OS is Amazon Linux AMI 2018.03.0 (HVM), SSD Volume Type - ami-09b42976632b27e9b.

My zbar files in my ec2-directory: /home/ec2-user/app/zbar/zbar-0.10 When I run ./configure, I have following error: (venv) [ec2-user@ip-xx-xx-xx-xx zbar-0.10]$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... Invalid configuration x86_64-unknown-linux-': machinex86_64-unknown-linux' not recognized configure: error: /bin/sh config/config.sub x86_64-unknown-linux- failed

owenonline commented 2 years ago

Same problem here

owenonline commented 2 years ago

The solution is here: http://www.techpository.com/linux-error-running-configure-x86_64-unknown-linux/ Just install gcc if you haven't already