Why does the "enable-shared failed" error occur in libjpeg build for os X?

I am trying to install libjpeg on os X to fix a problem with setting up a Python image library JPEG.

I downloaded libjpeg from http://www.ijg.org/files/jpegsrc.v7.tar.gz

Then I started to configure the configuration file

cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure –enable-shared

However, the checkbox with access enabled did not work.

$ ./configure –-enable-shared
configure: WARNING: you should use --build, --host, --target
configure: WARNING: invalid host type: –-enable-shared
checking build system type... Invalid configuration `–-enable-shared': machine `–-enable' not recognized
configure: error: /bin/sh ./config.sub –-enable-shared failed

I have done a lot of Google searches, and I cannot figure out where the error is or how to get around this error.

+3
source share
1 answer

I copied the code from the blog.

The flag symbol was not a flag, it looked like one:

ord("–")

TypeError: ord() expected a character, but string of length 3 found

I replaced it with suitable hypnosis, and it works great.

+2
source

Source: https://habr.com/ru/post/1717357/


All Articles