I am trying to compile highlight from the source files. To do this, I followed these steps:
1. Downloaded lua5.1 from http://www.lua.org/versions.html#5.1, followed the installation steps and "lua -v" shows
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
2. Downloaded Boost library from http://www.boost.org/, placed the folder in /usr/local/boost_1_54_0/ and after a couple of googling, created a symbolic link as sudo ln -s /usr/local/boost_1_54_0/boost src/include/boost. This resolved the linking problem to Boost library
Is there a wiki with step by step instructions, on how to configure it. Could you please help me to resolve this. I am using highlight-3.14.
I have not much OS X experience, but:
your Lua setup is not integrated in your pkg-config database.
Edit src/makefile and replace the pkg-config calls like this:
LUA_CFLAGS=$(shell pkg-config --cflags lua)
LUA_LIBS=$(shell pkg-config --libs lua)
Then run make again.
Make sure that your Lua lib can be found by the linker (i.e. run ldconfig)
Thanks for your reply André. I updated the make file of highlight, as you suggested. It solved my first error. Now, a part of make file looks like below:
#If Lua 5.2 is not default on your system yet you have to omit 5.1:
#$(shell pkg-config --cflags lua5.1)
# default lua lib
#$(shell pkg-config --libs lua5.1)
I haven't programmed in lua at all. How do I run ldconfig? I did a locate command in terminal, but there is no ldconfig executable available. I tried to search and found that ldconfig should be available in /sbin/ldconfig, but this is not available. Do I need to download some library for lua?
LUA_LIBS cannot be empty - it normally contains "-llua -lm". When you compiled lua (the interpreter) you can see which libs were used in the lua makefile.
ldconfig is not needed for lua. I mentioned it in case the linker would not find the lua library, then running ldconfig would update the lib cache. Possibly ldconfig is a part of Darwin development tools.
Unfortunately I have no access to a Mac so I cannot give concrete hints.
Hi, possibly you can use homebrew to install highlight:
They have packaged the current v 3.14.
Thanks. Installation from homebrew worked!! :)
Will explore this issue later, when time allows.
Log in to post a comment.