Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am attempting to build gettext 0.18.1.1 from the source under Ubuntu 12.04. I need to understand how to build it from the source because I am attempting to port it to another platform.

I checked out version 0.18.1.1 from git://git.savannah.gnu.org/gettext.git, installed the dependencies mentioned in autogen.sh and attempted to build. Here is the output I get for autogen.sh: http://pastebin.com/ai49ixa6 (Stackoverflow won't let me embed this much text inline)

There are plenty of warnings but (seemingly) no fatal errors. I proceed with configure:

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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gnulib-local/Makefile
=== configuring in gettext-runtime (/home/gili/Desktop/gettext/gettext-runtime)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local'  --cache-file=/dev/null --srcdir=.
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... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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... none
checking for bison... bison -y
./configure: line 4199: gt_JAVA_CHOICE: command not found
./configure: line 4201: syntax error near unexpected token `1.3,'
./configure: line 4201: `gt_JAVACOMP(1.3, 1.1)'
configure: error: ./configure failed for gettext-runtime

I am using autoconf 2.64 and automake 1.11.3. Any ideas?

UPDATE: I can build from tarball, but not from the repository. I can't figure out how the tarball was generated.

share|improve this question

closed as too localized by Jorge Castro, fossfreedom Jan 21 '13 at 11:16

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

The Git repo. is considered unstable and is prone to breaking at any given time. Instead, I would recommend using the latest gettext release:

http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz

As an extra bonus you can skip running ./autogen.sh and use the ./configure script packaged in the archive you download.

share|improve this answer
    
why is the 0.18.1.1 tag in the repository different from the 0.18.1.1 snapshot? I'd still like to be able to work from the repository so I can maintain my own fork. –  Gili Aug 12 '12 at 16:03
    
@Gili: I think they run some sort of pre-build steps on the snapshot - but I'm not positive. –  Nathan Osman Aug 13 '12 at 2:28

Not the answer you're looking for? Browse other questions tagged or ask your own question.