You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Daniel Gonzalez <go...@gonvaled.com> on 2012/09/12 13:15:47 UTC
Problems installing CouchDB 1.2.0 in Ubuntu 8.04 Server (HardyHeron)
Hi,
I am using the git repo (git://github.com/apache/couchdb.git) for this
install.
I have selected tag 1.2.0. I do:
./bootstrap
And then:
$ ./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 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... gcc3
./configure: line 3698: syntax error near unexpected token `win32-dll'
./configure: line 3698: `LT_INIT(win32-dll)'
What does this error mean? Has somebody been able to install CouchDB 1.2.0
in Ubuntu 8.04 Server?
Thanks,
Daniel
Re: Problems installing CouchDB 1.2.0 in Ubuntu 8.04 Server (HardyHeron)
Posted by Daniel Gonzalez <go...@gonvaled.com>.
On Wed, Sep 12, 2012 at 9:41 PM, Dave Cottlehuber <dc...@jsonified.com> wrote:
>
> I bet it does effect something.
>
> This was reported on mongodb lists a while back;
>
> > I've seen this happen before when the headers used to compile don't
> > match the library.
> > You should make sure there isn't a conflict between the version of
> > spidermonkey you build yourself, and your system version.
>
> If you can, build using this specific version of SM[1] and use the
> various JS-* flags in configure to force detection & usage of that.
> You're better off if you can remove any XULrunner or js-devel packages
> lurking around, but that's not always an option.
>
> [1]: https://developer.mozilla.org/en-US/docs/SpiderMonkey/1.8.5
>
> A+
> Dave
>
Thanks Dave,
I have reinstalled spidermonkey from source, and the problems are gone.
This is how I am doing it, in case it can help others:
install_spidermonkey_ ( ) {
cd /tmp
SPIDERMONKEY_VER="js185-1.0.0"
SPIDERMONKEY_DIR="js-1.8.5"
wget wget
http://ftp.mozilla.org/pub/mozilla.org/js/${SPIDERMONKEY_VER}.tar.gz
tar xvzf ${SPIDERMONKEY_VER}.tar.gz
cd ${SPIDERMONKEY_DIR}/js/src
make distclean 2> /dev/null # Just in case it is dirty
./configure
make clean
make
sudo make install
sudo ldconfig # Make sure the new libraries are reachable
}
And then, to build couch:
JS_LIB="/usr/local/lib/libmozjs185.so"
JS_INCLUDE="/usr/local/include/js"
./configure --with-js-lib=${JS_LIB} --with-js-include=${JS_INCLUDE}
BR,
Daniel
Re: Problems installing CouchDB 1.2.0 in Ubuntu 8.04 Server (HardyHeron)
Posted by Dave Cottlehuber <dc...@jsonified.com>.
On 12 September 2012 14:40, Daniel Gonzalez <go...@gonvaled.com> wrote:
> Thanks Dave,
>
> That worked fine. I am now performing the following processing before
> calling configure:
>
> if [ "$UBUNTU_VERSION" == "hardy" ] ; then
> # Problems in Ubuntu 8.04 Hardy Heron
> sed -e 's/^LT_INIT/#LT_INIT/' configure > xxx
> mv xxx configure
> chmod 755 configure
> fi
>
> And it is installing fine. I get a bunch (1467 times!) of strange errors
> while building ("[couchjs] reserved slot index out of range"), I think
> while doing "test/etap/072-cleanup", but it does not seem to affect.
I bet it does effect something.
This was reported on mongodb lists a while back;
> I've seen this happen before when the headers used to compile don't
> match the library.
> You should make sure there isn't a conflict between the version of
> spidermonkey you build yourself, and your system version.
If you can, build using this specific version of SM[1] and use the
various JS-* flags in configure to force detection & usage of that.
You're better off if you can remove any XULrunner or js-devel packages
lurking around, but that's not always an option.
[1]: https://developer.mozilla.org/en-US/docs/SpiderMonkey/1.8.5
A+
Dave
Re: Problems installing CouchDB 1.2.0 in Ubuntu 8.04 Server (HardyHeron)
Posted by Daniel Gonzalez <go...@gonvaled.com>.
Thanks Dave,
That worked fine. I am now performing the following processing before
calling configure:
if [ "$UBUNTU_VERSION" == "hardy" ] ; then
# Problems in Ubuntu 8.04 Hardy Heron
sed -e 's/^LT_INIT/#LT_INIT/' configure > xxx
mv xxx configure
chmod 755 configure
fi
And it is installing fine. I get a bunch (1467 times!) of strange errors
while building ("[couchjs] reserved slot index out of range"), I think
while doing "test/etap/072-cleanup", but it does not seem to affect.
On Wed, Sep 12, 2012 at 1:26 PM, Dave Cottlehuber <dc...@jsonified.com> wrote:
> On 12 September 2012 13:15, Daniel Gonzalez <go...@gonvaled.com> wrote:
> > Hi,
> >
> > I am using the git repo (git://github.com/apache/couchdb.git) for this
> > install.
> > I have selected tag 1.2.0. I do:
> >
> > ./bootstrap
> >
> > And then:
> >
> > $ ./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 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... gcc3
> > ./configure: line 3698: syntax error near unexpected token `win32-dll'
> > ./configure: line 3698: `LT_INIT(win32-dll)'
> >
> > What does this error mean? Has somebody been able to install CouchDB
> 1.2.0
> > in Ubuntu 8.04 Server?
> >
> > Thanks,
> > Daniel
>
> Hi Daniel,
>
> Most likely that your version of autotools is older than when LT_INIT
> was supported.
>
> You can safely remove that LT_INIT line & retry, or alternatively the
> release .tgz may work better for you than the git tag checkout.
>
> FWIW I think we released 1.2.0 using autoconf 2.69 or thereabouts, and
> likely a close relative of libtool as well.
>
> autoconf -V yields 2.69 on my mac.
>
> Given ubuntu 8.04 LTS ended last year, I don't see a need for fixing
> this unless we could ensure LT_INIT(…) ran only for windows
> configure/builds.
>
> A+
> Dave
>
Re: Problems installing CouchDB 1.2.0 in Ubuntu 8.04 Server (HardyHeron)
Posted by Dave Cottlehuber <dc...@jsonified.com>.
On 12 September 2012 20:43, Noah Slater <ns...@tumbolia.org> wrote:
> Dave,
>
> Have our INSTALL docs been updated to indicate required Autotools versions?
Hi Noah, likely not, on the other hand I'm not really sure how to tell
what we are
dependent on.
For 1.1.1, there were incompatibilities between building a release on
Snow Leopard,
and having it build on windows too. Bob ended up rolling it on a debian box.
Other than dumb testing, any bright ideas?
A+
Dave
Re: Problems installing CouchDB 1.2.0 in Ubuntu 8.04 Server (HardyHeron)
Posted by Noah Slater <ns...@tumbolia.org>.
Dave,
Have our INSTALL docs been updated to indicate required Autotools versions?
On Wed, Sep 12, 2012 at 12:26 PM, Dave Cottlehuber <dc...@jsonified.com>wrote:
> On 12 September 2012 13:15, Daniel Gonzalez <go...@gonvaled.com> wrote:
> > Hi,
> >
> > I am using the git repo (git://github.com/apache/couchdb.git) for this
> > install.
> > I have selected tag 1.2.0. I do:
> >
> > ./bootstrap
> >
> > And then:
> >
> > $ ./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 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... gcc3
> > ./configure: line 3698: syntax error near unexpected token `win32-dll'
> > ./configure: line 3698: `LT_INIT(win32-dll)'
> >
> > What does this error mean? Has somebody been able to install CouchDB
> 1.2.0
> > in Ubuntu 8.04 Server?
> >
> > Thanks,
> > Daniel
>
> Hi Daniel,
>
> Most likely that your version of autotools is older than when LT_INIT
> was supported.
>
> You can safely remove that LT_INIT line & retry, or alternatively the
> release .tgz may work better for you than the git tag checkout.
>
> FWIW I think we released 1.2.0 using autoconf 2.69 or thereabouts, and
> likely a close relative of libtool as well.
>
> autoconf -V yields 2.69 on my mac.
>
> Given ubuntu 8.04 LTS ended last year, I don't see a need for fixing
> this unless we could ensure LT_INIT(…) ran only for windows
> configure/builds.
>
> A+
> Dave
>
--
NS
Re: Problems installing CouchDB 1.2.0 in Ubuntu 8.04 Server (HardyHeron)
Posted by Dave Cottlehuber <dc...@jsonified.com>.
On 12 September 2012 13:15, Daniel Gonzalez <go...@gonvaled.com> wrote:
> Hi,
>
> I am using the git repo (git://github.com/apache/couchdb.git) for this
> install.
> I have selected tag 1.2.0. I do:
>
> ./bootstrap
>
> And then:
>
> $ ./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 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... gcc3
> ./configure: line 3698: syntax error near unexpected token `win32-dll'
> ./configure: line 3698: `LT_INIT(win32-dll)'
>
> What does this error mean? Has somebody been able to install CouchDB 1.2.0
> in Ubuntu 8.04 Server?
>
> Thanks,
> Daniel
Hi Daniel,
Most likely that your version of autotools is older than when LT_INIT
was supported.
You can safely remove that LT_INIT line & retry, or alternatively the
release .tgz may work better for you than the git tag checkout.
FWIW I think we released 1.2.0 using autoconf 2.69 or thereabouts, and
likely a close relative of libtool as well.
autoconf -V yields 2.69 on my mac.
Given ubuntu 8.04 LTS ended last year, I don't see a need for fixing
this unless we could ensure LT_INIT(…) ran only for windows
configure/builds.
A+
Dave
Re: Problems installing CouchDB 1.2.0 in Ubuntu 8.04 Server (HardyHeron)
Posted by Daniel Gonzalez <go...@gonvaled.com>.
Thanks Dan,
Sure, upgrading my Ubuntu box would be a solution, but frankly that is too
much hassle just to install couchdb 1.2.0.
Fortunately I got it to work with the Dave's suggestion.
BR,
Daniel
On Wed, Sep 12, 2012 at 2:26 PM, Dan Santner <da...@me.com> wrote:
> I installed and I am running happily on 11.04 server with no issues. I
> know it's probably a stupid question but anyway you can bump your Ubuntu
> version and re-install?
> On Sep 12, 2012, at 6:15 AM, Daniel Gonzalez wrote:
>
> > Hi,
> >
> > I am using the git repo (git://github.com/apache/couchdb.git) for this
> > install.
> > I have selected tag 1.2.0. I do:
> >
> > ./bootstrap
> >
> > And then:
> >
> > $ ./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 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... gcc3
> > ./configure: line 3698: syntax error near unexpected token `win32-dll'
> > ./configure: line 3698: `LT_INIT(win32-dll)'
> >
> > What does this error mean? Has somebody been able to install CouchDB
> 1.2.0
> > in Ubuntu 8.04 Server?
> >
> > Thanks,
> > Daniel
>
>
Re: Problems installing CouchDB 1.2.0 in Ubuntu 8.04 Server
(HardyHeron)
Posted by Dan Santner <da...@me.com>.
I installed and I am running happily on 11.04 server with no issues. I know it's probably a stupid question but anyway you can bump your Ubuntu version and re-install?
On Sep 12, 2012, at 6:15 AM, Daniel Gonzalez wrote:
> Hi,
>
> I am using the git repo (git://github.com/apache/couchdb.git) for this
> install.
> I have selected tag 1.2.0. I do:
>
> ./bootstrap
>
> And then:
>
> $ ./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 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... gcc3
> ./configure: line 3698: syntax error near unexpected token `win32-dll'
> ./configure: line 3698: `LT_INIT(win32-dll)'
>
> What does this error mean? Has somebody been able to install CouchDB 1.2.0
> in Ubuntu 8.04 Server?
>
> Thanks,
> Daniel