Can't install gnuplot with Lua on Mac OS 10.6 #7642

Closed
jergason opened this Issue Sep 15, 2011 · 4 comments

Comments

Projects
None yet
3 participants

I have a brand new installation of Snow Leopard that is failing to install gnuplot with Lua with the following error:

ld: library not found for -llua

Installing gnuplot with the --nolua flag works fine.

Here is the output of the build: https://gist.github.com/1218534

The failing line seems to be this one:

/usr/bin/g++-4.2  -O3 -march=core2 -msse4.1 -w -pipe  -L/usr/local/Cellar/libiconv/1.14/lib -L/usr/local/Cellar/gettext/0.18.1.1/lib -L/usr/local/Cellar/readline/6.2.1/lib -L/usr/X11/lib -L/usr/local/Cellar/readline/6.2.1/lib -L/usr/X11/lib -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices -L/usr/X11/lib -L/usr/X11/lib -o gnuplot alloc.o axis.o binary.o breaders.o bitmap.o color.o command.o contour.o datafile.o dynarray.o eval.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o matrix.o misc.o mouse.o parse.o plot.o plot2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stdfn.o tables.o tabulate.o term.o time.o unset.o util.o util3d.o variable.o version.o  gp_cairo.o gp_cairo_helpers.o -lreadline  -lncurses  -lz -lgd -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -liconv -ljpeg -lfreetype -lpng -L/usr/local/lib -llua -lm     -L/usr/local/Cellar/pango/1.28.4/lib -L/usr/local/Cellar/glib/2.28.8/lib -L/usr/local/Cellar/gettext/0.18.1.1/lib -L/usr/X11/lib -lz -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl 

In that monster line, there is only one reference to liblua:

-L/usr/local/lib -llua -lm 

When I look in /usr/local/lib, I see lua, liblua.5.1.4.dylib, and liblua.5.1.dylib. Those are the only files related to lua in the directory. Should the linker command read -llua5.1.4 instead of just -llua?

I have ran brew update and brew doctor, and I am up to date with no issues reported by doctor.

Contributor

dominickng commented Sep 15, 2011

I've had this problem on Lion as well; seems like it's a to do with a missing symlink titled liblua.dylib. There are two pull requests (#7561, #7517) waiting to fix this issue. :)

Contributor

Sharpie commented Sep 15, 2011

Been busy fixing other stuff---but we'll get there :)

Bugs related Lua are definitely at the top of my list of "issues to solve" now that some other things have been cleared out. It would help if people affected by this issue could comment on #7561 or #7517 and say if the fix works or doesn't work.

#7517 fixes this for me. Should I close this?

Sharpie closed this in 99d7889 Sep 15, 2011

Contributor

Sharpie commented Sep 15, 2011

Allright. Fixes pulled---thanks for your patience!

@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 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.