gnuplot won't brew on Lion with XCode 4.1 (app store version) #6648

Closed
skandragon opened this Issue Jul 27, 2011 · 15 comments

Projects

None yet
@skandragon

(it appears to be missing libpng, which is strange at first glance.)

@jacknagel
Contributor

Looks like a libpng 1.2 vs 1.5 thing (Lion has 1.5).

@fsvehla
fsvehla commented Aug 10, 2011

Do we need a libpng12 formula?

@jacknagel
Contributor

I dunno. A willing person could take this to the gnuplot developers, and maybe we'll get lucky and it won't be too much work to patch it to work with libpng 1.5 (or maybe there's a patch already in?). Gnuplot development is pretty sluggish though, it seems.

@joebarker87

Until the issue is resolved upstream, gnuplot can be installed using the --nogd argument. Of course the png (and other gd based terminals) will not be in the build.

@joebarker87

I realised today that the X11 lib folder still has the library, so just symlinking the relavent name also gives a good temporary fix with png support.

sudo ln -s /usr/X11/lib/libpng12.0.dylib /usr/X11/lib/libpng12.dylib

@aumuell
aumuell commented Aug 25, 2011

After I removed and re-installed gd, which was compiled on Snow Leopard and linked against png12, I could build gnuplot just fine. No changes whatsoever required.

@jacknagel
Contributor

@aumuell Useful information, thanks for pointing it out.

@stranak
stranak commented Sep 1, 2011

My build seems to be failing with an issue unrelated to libpng:
ld: library not found for -llua

Yet lua seems to have been brewed by the gnu plot receipt:
ls -l which lua
lrwxrwxr-x 1 stranak admin 27 1 zář 11:25 /usr/local/bin/lua -> ../Cellar/lua/5.1.4/bin/lua

@colinta
colinta commented Sep 1, 2011

symlinking (@joebarker87, #issuecomment-1901156) worked for me, too. run that command, and brew install gnuplot compiled fine. thanks, Joe!

@adamv
Contributor
adamv commented Sep 1, 2011

Maybe we can patch configure to find libpng correctly.

@cartazio
cartazio commented Sep 2, 2011

theres also the related issue that gd can't be built from homebrew right now.
So currently gnuplot seems to be only buildable
if the --nogd and --nolua flags are set?

@cartazio
cartazio commented Sep 4, 2011

the building gd problem seems to be fixe, but it still fails if built without the flag --nolua

@adamv
Contributor
adamv commented Sep 4, 2011

We could add --nolua; there are some pending lua changes that may or may not help.

@eject-it

both compile absolutely wonderful without homebrew, just xcode 4.1 from appstore

download from web and extract lua-5.1.4.tar.gz

go there with terminal

make macosx

then

sudo make install

download from web and extract gnuplot-4.4.3.tar.gz

go there with terminal

./configure --with-lua=yes

then

make

then

sudo make install

just incase someone needs to get it running because there is simply no need for homebrew or macports or whatever, osx and xcopde will do

cheers,
Basti

@Sharpie Sharpie added a commit that closed this issue Sep 15, 2011
@popq @Sharpie popq + Sharpie Lua: Ensure liblua.dylib is created
Adding versionless soft link in INSTALL_LIB to allow linking with -llua (see
homebrew issue #6350 for an example) (Related to name change in commit
9228a05).

Fixes #7642.
Fixes #6648.
Closes #7561.
Closes #7517.
Closes #6235.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
99d7889
@Sharpie Sharpie closed this in 99d7889 Sep 15, 2011
@martinploeger martinploeger added a commit to martinploeger/homebrew that referenced this issue Oct 8, 2011
@popq @martinploeger popq + martinploeger Lua: Ensure liblua.dylib is created
Adding versionless soft link in INSTALL_LIB to allow linking with -llua (see
homebrew issue #6350 for an example) (Related to name change in commit
9228a05).

Fixes #7642.
Fixes #6648.
Closes #7561.
Closes #7517.
Closes #6235.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
50aa19f
@Sharpie Sharpie added a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012
@popq @Sharpie popq + Sharpie Lua: Ensure liblua.dylib is created
Adding versionless soft link in INSTALL_LIB to allow linking with -llua (see
homebrew issue #6350 for an example) (Related to name change in commit
9228a05).

Fixes #7642.
Fixes #6648.
Closes #7561.
Closes #7517.
Closes #6235.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
80e4c76
@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
@popq @Sharpie popq + Sharpie Lua: Ensure liblua.dylib is created
Adding versionless soft link in INSTALL_LIB to allow linking with -llua (see
homebrew issue #6350 for an example) (Related to name change in commit
9228a05).

Fixes #7642.
Fixes #6648.
Closes #7561.
Closes #7517.
Closes #6235.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
660cfd9
@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.