Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Building 4.6.x on OSX

164 views
Skip to first unread message

dan.hi...@gmail.com

unread,
Oct 31, 2012, 5:06:46 PM10/31/12
to
I am something of a noob.

Been running 4.4 patch level 2 happily for a couple of years and decided to see about 4.6.

It's a nightmare. The Cairo libs appear to install properly, but Gnuplot configure won't find the libs. Pango won't build:

<blockquote>checking for CAIRO... no
no
configure: error: *** Could not enable any backends.
*** Must have at least one backend to build Pango.
/<blockquote>

Gnuplot complains about two things: Cairo and Pango:
<blockquote>
No package 'cairo' found
No package 'pango' found
No package 'pangocairo' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

Alternatively, you may set the environment variables CAIROPANGO_CFLAGS and CAIROPANGO_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

configure: WARNING: The wxWidgets terminal will not be compiled.
checking for PANGO_1_10_2... no
checking for CAIROPDF... configure: WARNING:
Package requirements ( cairo >= 1.2 cairo-pdf >= 1.2 pango >= 1.10 pangocairo >= 1.10 glib-2.0) were not met:

No package 'cairo' found
No package 'cairo-pdf' found
No package 'pango' found
No package 'pangocairo' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

Alternatively, you may set the environment variables CAIROPDF_CFLAGS and CAIROPDF_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

configure: WARNING: The cairo terminals will not be compiled.
/<blockquote>

and the make command for Gnuplot says:
<blockquote>
ld: library not found for -lpng12
collect2: ld returned 1 exit status
make[3]: *** [gnuplot] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
/<blockquote>

I guess I can live w/o the Cairo and Pango but I have been tearing my hair out trying to figure ut two things:

I've tried to modify the PKG_CONFIG_PATH but with no luck but I am not expert on such things.

- How do I get lpng12 installed?

- How to I persuade gnuplot to find Cairo?

- How do I get Pango to find Cairo?

The sources I've googled have many suggestions but none appear to work.

I anyone can point me to some detailed outline for this I would really appreciate it.

I am not using MacPorts or Fink for any of this.

Snow Leopard
Model Name: iMac
Model Identifier: iMac7,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.8 GHz
Memory: 6 GB

dan.hi...@gmail.com

unread,
Nov 2, 2012, 4:24:33 PM11/2/12
to
UPDATE:

lpng12 problem solved and GNUplot 4.6.1 patchlevel 1 built and running. What solved the lpng issue was this:

http://ethan.tira-thompson.com/Mac_OS_X_Ports.html

but the cairo problem seems intractable. Pointers and suggestions most welcome.

Ron Shepard

unread,
Nov 3, 2012, 12:01:10 PM11/3/12
to
> I am something of a noob.

I use the package manager fink to install gnuplot on MacOSX. It
keeps track of dependencies on other libraries and fonts. You can
get started here.

http://www.finkproject.org

The eventual command to install the code is something like

fink install gnuplot

or

fink install gnuplot-nogtk

depending on what kind of graphics/library/device support you use.
As of right now this instant, the current version is 4.6.0-2.
Generally fink lags a few weeks behind the cutting edge, so that may
be important in your decision whether to use it. If you really are
a noob, then this approach will solve a lot of problems with various
software installations. After installation, do "fink list" to see
what is available -- it is a very long list.

$.02 -Ron Shepard

dan.hi...@gmail.com

unread,
Nov 15, 2012, 11:52:02 AM11/15/12
to
Well, I had no problems building 4.4.x but to upgrade 4.6 w/pango & cairo was just too much trouble; it worked, but w/o those terminals. So I ripped all the builds of gnuplot out and went to Macports and I'm a happy camper; all works as it should.

Thanks for the help.
0 new messages