Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not compile on Amazon Linux 64b #48

Closed
fuho opened this issue Dec 22, 2012 · 6 comments
Closed

Can not compile on Amazon Linux 64b #48

fuho opened this issue Dec 22, 2012 · 6 comments
Labels

Comments

@fuho
Copy link

fuho commented Dec 22, 2012

This time I will document everything I do while trying to get VIPS compiled on Amazon AWS EC2 instance running Amazon Linux updated to the latest version (I believe that is 2012.09):

After git clone, from libvips directory:

$ ./bootstrap.sh 
./bootstrap.sh: line 20: aclocal: command not found
cp: cannot stat `/codeset.m4': No such file or directory
cp: cannot stat `/gettext.m4': No such file or directory
cp: cannot stat `/glibc21.m4': No such file or directory
cp: cannot stat `/iconv.m4': No such file or directory
cp: cannot stat `/isc-posix.m4': No such file or directory
cp: cannot stat `/lcmessage.m4': No such file or directory
cp: cannot stat `/progtest.m4': No such file or directory
cp: cannot stat `/introspection.m4': No such file or directory
./bootstrap.sh: line 31: gtkdocize: command not found

ok, aclocal and gtkdocize missing, aclocal is i think provided by automake:
$ sudo yum install automake gtk-doc then:

./bootstrap.sh 
mkdir: cannot create directory `m4': File exists
cp: cannot stat `/usr/share/aclocal/codeset.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/gettext.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/glibc21.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/iconv.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/isc-posix.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/lcmessage.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/progtest.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/introspection.m4': No such file or directory
testing for glibtoolize ...
using libtoolize
Copying file mkinstalldirs
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

configure.in:289: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:299: error: possibly undefined macro: AC_PROG_LIBTOOL
./bootstrap.sh: line 50: libtoolize: command not found
configure.in:91: installing `./config.guess'
configure.in:91: installing `./config.sub'
configure.in:12: installing `./install-sh'
configure.in:12: installing `./missing'
gtk-doc.make:55: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL
doc/reference/Makefile.am:89:   `gtk-doc.make' included from here
gtk-doc.make:60: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL
doc/reference/Makefile.am:89:   `gtk-doc.make' included from here
libvips/Makefile.am:83: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
libvips/Makefile.am:32: Libtool library used but `LIBTOOL' is undefined
libvips/Makefile.am:32:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/Makefile.am:32:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/Makefile.am:32:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/Makefile.am:32:   its definition is in aclocal's search path.
libvips/Makefile.am: installing `./depcomp'
libvips/arithmetic/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/arithmetic/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/arithmetic/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/arithmetic/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/arithmetic/Makefile.am:1:   its definition is in aclocal's search path.
libvips/cimg/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/cimg/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/cimg/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/cimg/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/cimg/Makefile.am:1:   its definition is in aclocal's search path.
libvips/colour/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/colour/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/colour/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/colour/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/colour/Makefile.am:1:   its definition is in aclocal's search path.
libvips/conversion/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/conversion/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/conversion/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/conversion/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/conversion/Makefile.am:1:   its definition is in aclocal's search path.
libvips/convolution/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/convolution/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/convolution/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/convolution/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/convolution/Makefile.am:1:   its definition is in aclocal's search path.
libvips/deprecated/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/deprecated/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/deprecated/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/deprecated/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/deprecated/Makefile.am:1:   its definition is in aclocal's search path.
libvips/foreign/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/foreign/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/foreign/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/foreign/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/foreign/Makefile.am:1:   its definition is in aclocal's search path.
libvips/freq_filt/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/freq_filt/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/freq_filt/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/freq_filt/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/freq_filt/Makefile.am:1:   its definition is in aclocal's search path.
libvips/histograms_lut/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/histograms_lut/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/histograms_lut/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/histograms_lut/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/histograms_lut/Makefile.am:1:   its definition is in aclocal's search path.
libvips/inplace/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/inplace/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/inplace/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/inplace/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/inplace/Makefile.am:1:   its definition is in aclocal's search path.
libvips/iofuncs/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/iofuncs/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/iofuncs/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/iofuncs/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/iofuncs/Makefile.am:1:   its definition is in aclocal's search path.
libvips/morphology/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/morphology/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/morphology/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/morphology/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/morphology/Makefile.am:1:   its definition is in aclocal's search path.
libvips/mosaicing/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/mosaicing/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/mosaicing/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/mosaicing/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/mosaicing/Makefile.am:1:   its definition is in aclocal's search path.
libvips/other/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/other/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/other/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/other/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/other/Makefile.am:1:   its definition is in aclocal's search path.
libvips/resample/Makefile.am:42: Libtool library used but `LIBTOOL' is undefined
libvips/resample/Makefile.am:42:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/resample/Makefile.am:42:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/resample/Makefile.am:42:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/resample/Makefile.am:42:   its definition is in aclocal's search path.
libvips/video/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
libvips/video/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvips/video/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
libvips/video/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvips/video/Makefile.am:1:   its definition is in aclocal's search path.
libvipsCC/Makefile.am:9: Libtool library used but `LIBTOOL' is undefined
libvipsCC/Makefile.am:9:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libvipsCC/Makefile.am:9:   to `configure.in' and run `aclocal' and `autoconf' again.
libvipsCC/Makefile.am:9:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
libvipsCC/Makefile.am:9:   its definition is in aclocal's search path.
swig/vipsCC/Makefile.am:32: Libtool library used but `LIBTOOL' is undefined
swig/vipsCC/Makefile.am:32:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
swig/vipsCC/Makefile.am:32:   to `configure.in' and run `aclocal' and `autoconf' again.
swig/vipsCC/Makefile.am:32:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
swig/vipsCC/Makefile.am:32:   its definition is in aclocal's search path.
swig/vipsCC/Makefile.am:13: installing `./py-compile'
./bootstrap.sh: line 53: swig: command not found
you need swig to build from SVN

I need SWIG! sudo yum install swig also it has some issues with libtoolize, let's get it libtool sudo yum install libtool-ltdl-devel libtool then

./bootstrap.sh
cp: cannot stat `/usr/share/aclocal/codeset.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/gettext.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/glibc21.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/iconv.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/isc-posix.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/lcmessage.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/progtest.m4': No such file or directory
cp: cannot stat `/usr/share/aclocal/introspection.m4': No such file or directory
testing for glibtoolize ...
using libtoolize
Copying file mkinstalldirs
Copying file po/Makefile.in.in

Please add the files
  codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
  progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.

configure.in:91: installing `./config.guess'
configure.in:91: installing `./config.sub'
configure.in:12: installing `./install-sh'
configure.in:12: installing `./missing'
gtk-doc.make:55: GTK_DOC_BUILD_HTML does not appear in AM_CONDITIONAL
doc/reference/Makefile.am:89:   `gtk-doc.make' included from here
gtk-doc.make:60: GTK_DOC_BUILD_PDF does not appear in AM_CONDITIONAL
doc/reference/Makefile.am:89:   `gtk-doc.make' included from here
libvips/Makefile.am:83: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
libvips/Makefile.am: installing `./depcomp'
swig/vipsCC/Makefile.am:13: installing `./py-compile'

ok, now let's try to configure (to /lib and /bin) :

 ./configure --prefix=''
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
./configure: line 2740: syntax error near unexpected token `1.30.0'
./configure: line 2740: `GOBJECT_INTROSPECTION_CHECK(1.30.0)'

And now I am trying to install gobject-introspection, I haven't found it in repositories, so I am trying to compile it from source. It keeps telling me that Glib on the system is too old, so I compiled latest glib from source with prefix='', then ldconfig and tried configuring gobject-introspection again, but it still doesn't register the newly compiled Glib and keeps telling me that Requested 'glib-2.0 >= 2.29.7' but version of GLib is 2.22.5. Restarted the instance and now am recompiling glib again after I sudo yum remove glib-devel (it didn't let me uninstall glib, when I tried it tried to remove yum)

Now for a change No package 'glib-2.0' found, even though I have just compiled it, restarting the system again...

@jcupitt
Copy link
Member

jcupitt commented Dec 31, 2012

Hi, sorry for the delay in responding.

You can make this a bit simpler: get the sources from git and make a distribution tarball on your development machine, then configure and build that on your production machine. git sources -> dev tarball needs quite a few packages, such as swig and gobject-introspection and automake, which are not required for the final configure.

So I'd do this on my development machine:

download snapshot from github, patch as required
./bootstrap
./configure --enable-gtk-doc
make
make dist

This will make a distribution tarball. This tarball can configure and build with only run-time dependencies required. For example, no need for swig, since that's run for you at dis build time.

Now on your amazon instance:

tar xf vips-7.31.0.tar.gz
cd vips-7.31.0
./configure --prefix=/home/me/vips
make
make install

And that should work with no development dependencies.

@fuho
Copy link
Author

fuho commented Dec 31, 2012

Thanks for your help again,
I will do that as soon as I can.
Oh and happy new year! :)

@jcupitt
Copy link
Member

jcupitt commented Jan 15, 2013

There's an updated dev tarball here:

http://www.vips.ecs.soton.ac.uk/development/vips-7.31.0.tar.gz

it might help this problem.

@jcupitt
Copy link
Member

jcupitt commented Jun 11, 2013

Closing this issue, it seems to be fixed. Please reopen if there's still a problem.

@bradisbell
Copy link

I am having the exact same issue on Amazon Linux AMI release 2014.03. For the tarball at http://www.vips.ecs.soton.ac.uk/supported/current/vips-7.40.2.tar.gz, output of ./configure:

...
configure: error: Package requirements (glib-2.0 >= 2.6 gmodule-2.0 libxml-2.0 gobject-2.0) were not met:

No package 'glib-2.0' found
No package 'gmodule-2.0' found
No package 'libxml-2.0' found
No package 'gobject-2.0' found

At a minimum, glib-2.0 is on the system. I assume there are some path issues, but I cannot figure out what.

@bradisbell
Copy link

Well, that turned out to be embarrassingly easy... glib-2.0 was on the system but glib2-devel was not. Installing it and libxml2-devel fixed the issue.

sudo yum install glib2-devel
sudo yum install libxml2-devel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants