Monday, June 25, 2012

[LINUX_Newbies] Question about ./configure

 

I'm a Gentoo user. I started using Gentoo in 2005. Since that time I've very rarely been able to install non-portage software successully. Usually it fails during the make phase. Otherwise, non-portage software has always used the ./configure-make-make install cycle. As a result, I'm completely clueless when it comes to building non-portage software. I'm currently trying to build some source code I downloaded from svn:

michael@carter /home/work/trunk $ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LUA... no
configure: error: Package requirements (lua5.1 >= LUA_REQUIRED_VERSION) were not met:

No package 'lua5.1' 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 LUA_CFLAGS
and LUA_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
michael@carter /home/work/trunk $

I have lua:
ichael@carter /home/work/trunk $ sudo emerge -pv lua
Password:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] dev-lang/lua-5.1.4-r4 USE="deprecated readline -emacs -static" 212 kB

Total: 1 package (1 reinstall), Size of downloads: 212 kB

I even know where it lives:
michael@carter /home/work/trunk $ ls /usr/lib/liblua*
/usr/lib/liblua.a /usr/lib/liblua.so /usr/lib/liblua.so.5.1.4
/usr/lib/liblua.la /usr/lib/liblua.so.5
michael@carter /home/work/trunk $

So how do I get configure to recognize that lua is on the system?

__._,_.___
Recent Activity:
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
.

__,_._,___

No comments:

Post a Comment