Install problem

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
D.Mon
Posts: 8
Joined: 2015-02-02T05:19:29-07:00
Authentication code: 6789

Install problem

Post by D.Mon »

Hallo,

I tried to install ImageMagick 6.3.9-8 from source on OS X 10.11.
I don't want to use home-brew or something like this.

I installed jpegsrc.v9b the same way I did some time ago under OS X 10.10
after ./configure I get

Code: Select all

JPEG v1           --with-jpeg=yes		no (failed tests)
How can I get jpeg support in OS X 10.11?

Regards
D.Mon
Last edited by D.Mon on 2016-04-23T13:19:30-07:00, edited 1 time in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Install problem

Post by fmw42 »

You have either an error on installing the libjpeg or it is in the wrong location. Check your libjpeg install log.

If you install IM from binary, you should get Jpg support automatically. If you do it from source, I recommend installing all delegates from MacPorts and then install IM from source manually. See viewtopic.php?f=1&t=21502&p=88202&hilit ... rts#p88202
D.Mon
Posts: 8
Joined: 2015-02-02T05:19:29-07:00
Authentication code: 6789

Re: Install problem

Post by D.Mon »

I don't think I have an error on installing the libjpeg.
The binaries are in /usr/local/bin, the libs are in /usr/local/ an everything seems to work fine

In which location is it supposed to be?

This is the output of configure:

Code: Select all

checking for JPEG... 
checking jconfig.h usability... yes
checking jconfig.h presence... no
configure: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: jconfig.h: proceeding with the compiler's result
checking for jconfig.h... yes
checking jerror.h usability... yes
checking jerror.h presence... no
configure: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: jerror.h: proceeding with the compiler's result
checking for jerror.h... yes
checking jmorecfg.h usability... yes
checking jmorecfg.h presence... no
configure: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: jmorecfg.h: proceeding with the compiler's result
checking for jmorecfg.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... no
configure: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: jpeglib.h: proceeding with the compiler's result
checking for jpeglib.h... yes
checking for jpeg_read_header in -ljpeg... no
checking for JPEG library is version 6b or later... yes
checking if JPEG package is complete... no -- some components failed test
usability yes
presence no
What does this mean?

I don't have MacPorts installed and I don't want to install it.
What else could I try?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Install problem

Post by fmw42 »

Google for it and see what comes up. For example, did you follow http://mac-dev-env.patrickbougie.com/libjpeg/

Perhaps IM expects an older or different version? see https://dzone.com/articles/installing-libjpeg-os-x and http://libjpeg.sourceforge.net/ and http://rudix.org/packages/libjpeg.html

Did you install IM after installing libjpg?

Do you have the right permissions where you installed it?

On my system I have libjpeg 9 (90)


JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (90)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format (90)
D.Mon
Posts: 8
Joined: 2015-02-02T05:19:29-07:00
Authentication code: 6789

Re: Install problem

Post by D.Mon »

Thank you very much for your feedback.
Of course I did google quite a lot before asking here.

I finally found a solution after closely reading ./configure --help

Code: Select all

Some influential environment variables:
[...]
   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
[...]
So I tried 'export LDFLAGS='-L/usr/local/lib'
I do not understand why this was necessary because as far as I know /usr/local/lib is a standard directory for libs.
Also the libraries for the other delegates are in that same directory.
It worked for me and maybe this will help someone else in the future.

P.S. Does anyone know how I can find out which email address my account in this forum is linked to?
Could´t find it in the user control panel.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Install problem

Post by snibgo »

D.Mon wrote:P.S. Does anyone know how I can find out which email address my account in this forum is linked to?
Click on your username (top-right).
At "User Control Panel", click on "Profile" tab.
Click on "Edit account settings" on the left.
"Email address" shows on the right.
snibgo's IM pages: im.snibgo.com
D.Mon
Posts: 8
Joined: 2015-02-02T05:19:29-07:00
Authentication code: 6789

Re: Install problem

Post by D.Mon »

Thank you.
It shows my username in the email field.
I think this is because of OS X´s saved passwords.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Install problem

Post by snibgo »

I think it shows whatever you give as an email address. You can change it whenever you want.

Under tab "Board preferences", "Edit notification options", you can say when you want email. You might tick EMAIL for "Someone sends you a private message", and send yourself a PM.
snibgo's IM pages: im.snibgo.com
D.Mon
Posts: 8
Joined: 2015-02-02T05:19:29-07:00
Authentication code: 6789

Re: Install problem

Post by D.Mon »

Well, actually I do not get any email notifications although I set "email on" in all lines in "Edit notification options".
I just tried by sending myself a PM as you suggested.

When I delete the saved password in my browser, I see my email address in the Email field in my profile.

Nevermind: I do get email notifications.
I didn´t realize they went to my spam folder because on my works´s computer I have set spam to be left in the inbox.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Install problem

Post by fmw42 »

Is /usr/local/lib in your PATH environment variable? If not, try adding that and then perhaps you won't need LDFLAGS. But if it works now, perhaps not worth the effort to try this.
Post Reply