You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Brian Candler <B....@pobox.com> on 2009/11/06 12:16:12 UTC

libmozjs-dev conflict in Karmic

I have updated my laptop from Xubuntu Jaunty to Karmic.

I now find that if I install the libmozjs-dev package, required to build
couchdb, it insists on uninstalling Firefox. This is rather annoying.

$ sudo apt-get install libmozjs-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libnspr4-dev
The following packages will be REMOVED
  firefox firefox-3.5 firefox-3.5-branding ubufox xulrunner-1.9.1
The following NEW packages will be installed
  libmozjs-dev libnspr4-dev
0 upgraded, 2 newly installed, 5 to remove and 0 not upgraded.
Need to get 0B/466kB of archives.
After this operation, 24.0MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.

Is anybody else seeing this? Is it the same with a fresh Karmic install, or
just an artefact of the upgrade process?

And is there someone here who knows enough about dpkg dependencies to work
out what the problem is? I can show some info but I can't see any obvious
conflicts.

$ apt-cache showpkg libmozjs-dev
Package: libmozjs-dev
Versions: 
1.8.1.16+nobinonly-0ubuntu1 (/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_universe_binary-i386_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_universe_binary-i386_Packages
                  MD5: b123ef11961280a2acecade73e16ccbd


Reverse Depends: 
  xulrunner-1.9.1,libmozjs-dev
  libxul-dev,libmozjs-dev 1.8.1.16+nobinonly-0ubuntu1
  libsablot0-dev,libmozjs-dev
  xulrunner-1.9.1,libmozjs-dev
Dependencies: 
1.8.1.16+nobinonly-0ubuntu1 - libmozjs0d (2 1.8.1.16+nobinonly) libnspr4-dev (0 (null)) mozilla-browser (3 2:1.8) 
Provides: 
1.8.1.16+nobinonly-0ubuntu1 - 
Reverse Provides: 

$ apt-cache showpkg libnspr4-dev
Package: libnspr4-dev
Versions: 
4.8-0ubuntu1 (/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_main_binary-i386_Packages)
 Description Language: 
                 File: /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_main_binary-i386_Packages
                  MD5: 5fb64e5ffcd6242fc78f56e991c9d6df


Reverse Depends: 
  xulrunner-1.9.1-dev,libnspr4-dev
  libxul-dev,libnspr4-dev
  libmozjs-dev,libnspr4-dev
  xulrunner-1.9.1-dev,libnspr4-dev
  libnss3-dev,libnspr4-dev
  libnspr4-0d,libnspr4-dev 4.7.1+1.9-0ubuntu2
  libnspr4-0d,libnspr4-dev 4.7.1+1.9-0ubuntu2
  libedataserver1.2-dev,libnspr4-dev
Dependencies: 
4.8-0ubuntu1 - libnspr4-0d (2 4.8) libnspr4-0d (1 4.8-0ubuntu1.1~) libnspr-dev (0 (null)) libnspr4 (0 (null)) nvu-dev (0 (null)) 
Provides: 
4.8-0ubuntu1 - 
Reverse Provides: 

Thanks,

Brian.

Re: libmozjs-dev conflict in Karmic

Posted by Brian Candler <B....@pobox.com>.
I think I have the solution now:

./bootstrap &&
LD_RUN_PATH=/usr/lib/xulrunner-1.9.1.4 ./configure --with-js-lib=/usr/lib/xulrunner-1.9.1.4 --with-js-include=/usr/lib/xulrunner-devel-1.9.1.4/include &&
LD_RUN_PATH=/usr/lib/xulrunner-1.9.1.4 make &&
sudo make install &&
sudo /usr/local/etc/init.d/couchdb restart

This builds the rpath into the couchjs binary, so that

	libmozjs.so => /usr/lib/xulrunner-1.9.1.4/libmozjs.so

Regards,

Brian.

Re: libmozjs-dev conflict in Karmic

Posted by Noah Slater <ns...@tumbolia.org>.
On 7 Nov 2009, at 23:00, Benoit Chesneau wrote:

> You coudl apply this patch :
> http://bazaar.launchpad.net/%7Eubuntu-branches/ubuntu/karmic/couchdb/karmic/annotate/head%3A/debian/patches/mozjs1.9_ldlibpath.patch

If someone modifies this for configure.ac I will add it to CouchDB  
proper.


Re: libmozjs-dev conflict in Karmic

Posted by Benoit Chesneau <bc...@gmail.com>.
On Sat, Nov 7, 2009 at 11:18 PM, Brian Candler <B....@pobox.com> wrote:
> On Fri, Nov 06, 2009 at 11:28:37AM +0000, Matt Goodall wrote:
>> This works: http://mattgoodall.blogspot.com/2009/09/build-couchdb-on-ubuntu-910-karmic.html.
>
> Thanks. I see that installing xulrunner-dev also installs libnspr4-dev as a
> dependency, just as libmozjs-dev does, so that eliminates one problem,
>
> What I don't understand is that libmozjs-dev is causing a conflict, but
> libmozjs itself isn't. I was able to build couchdb like this:
>
> * apt-get install libmozjs-dev        (removes firefox as side effect)
> * ... normal build...
> * apt-get install firefox             (removes libmozjs-dev as side effect)
>
>> Can anyone else suggest a better way?
>
> It's annoying to have to set LD_LIBRARY_PATH on each run. Setting
> LD_RUN_PATH at compile time should build that information into the binary,
> but I'll need to test.
>

You coudl apply this patch :
http://bazaar.launchpad.net/%7Eubuntu-branches/ubuntu/karmic/couchdb/karmic/annotate/head%3A/debian/patches/mozjs1.9_ldlibpath.patch


and then build against xulrunner. So you won't have to have LD* in
your .profile. Though it is quite similar.

- benoit

Re: libmozjs-dev conflict in Karmic

Posted by Brian Candler <B....@pobox.com>.
On Fri, Nov 06, 2009 at 11:28:37AM +0000, Matt Goodall wrote:
> This works: http://mattgoodall.blogspot.com/2009/09/build-couchdb-on-ubuntu-910-karmic.html.

Thanks. I see that installing xulrunner-dev also installs libnspr4-dev as a
dependency, just as libmozjs-dev does, so that eliminates one problem,

What I don't understand is that libmozjs-dev is causing a conflict, but
libmozjs itself isn't. I was able to build couchdb like this:

* apt-get install libmozjs-dev        (removes firefox as side effect)
* ... normal build...
* apt-get install firefox             (removes libmozjs-dev as side effect)

> Can anyone else suggest a better way?

It's annoying to have to set LD_LIBRARY_PATH on each run. Setting
LD_RUN_PATH at compile time should build that information into the binary,
but I'll need to test.

Re: libmozjs-dev conflict in Karmic

Posted by Matt Goodall <ma...@gmail.com>.
This works: http://mattgoodall.blogspot.com/2009/09/build-couchdb-on-ubuntu-910-karmic.html.

Can anyone else suggest a better way?

- Matt


2009/11/6 Brian Candler <B....@pobox.com>:
> I have updated my laptop from Xubuntu Jaunty to Karmic.
>
> I now find that if I install the libmozjs-dev package, required to build
> couchdb, it insists on uninstalling Firefox. This is rather annoying.
>
> $ sudo apt-get install libmozjs-dev
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
>  libnspr4-dev
> The following packages will be REMOVED
>  firefox firefox-3.5 firefox-3.5-branding ubufox xulrunner-1.9.1
> The following NEW packages will be installed
>  libmozjs-dev libnspr4-dev
> 0 upgraded, 2 newly installed, 5 to remove and 0 not upgraded.
> Need to get 0B/466kB of archives.
> After this operation, 24.0MB disk space will be freed.
> Do you want to continue [Y/n]? n
> Abort.
>
> Is anybody else seeing this? Is it the same with a fresh Karmic install, or
> just an artefact of the upgrade process?
>
> And is there someone here who knows enough about dpkg dependencies to work
> out what the problem is? I can show some info but I can't see any obvious
> conflicts.
>
> $ apt-cache showpkg libmozjs-dev
> Package: libmozjs-dev
> Versions:
> 1.8.1.16+nobinonly-0ubuntu1 (/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_universe_binary-i386_Packages)
>  Description Language:
>                 File: /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_universe_binary-i386_Packages
>                  MD5: b123ef11961280a2acecade73e16ccbd
>
>
> Reverse Depends:
>  xulrunner-1.9.1,libmozjs-dev
>  libxul-dev,libmozjs-dev 1.8.1.16+nobinonly-0ubuntu1
>  libsablot0-dev,libmozjs-dev
>  xulrunner-1.9.1,libmozjs-dev
> Dependencies:
> 1.8.1.16+nobinonly-0ubuntu1 - libmozjs0d (2 1.8.1.16+nobinonly) libnspr4-dev (0 (null)) mozilla-browser (3 2:1.8)
> Provides:
> 1.8.1.16+nobinonly-0ubuntu1 -
> Reverse Provides:
>
> $ apt-cache showpkg libnspr4-dev
> Package: libnspr4-dev
> Versions:
> 4.8-0ubuntu1 (/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_main_binary-i386_Packages)
>  Description Language:
>                 File: /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_main_binary-i386_Packages
>                  MD5: 5fb64e5ffcd6242fc78f56e991c9d6df
>
>
> Reverse Depends:
>  xulrunner-1.9.1-dev,libnspr4-dev
>  libxul-dev,libnspr4-dev
>  libmozjs-dev,libnspr4-dev
>  xulrunner-1.9.1-dev,libnspr4-dev
>  libnss3-dev,libnspr4-dev
>  libnspr4-0d,libnspr4-dev 4.7.1+1.9-0ubuntu2
>  libnspr4-0d,libnspr4-dev 4.7.1+1.9-0ubuntu2
>  libedataserver1.2-dev,libnspr4-dev
> Dependencies:
> 4.8-0ubuntu1 - libnspr4-0d (2 4.8) libnspr4-0d (1 4.8-0ubuntu1.1~) libnspr-dev (0 (null)) libnspr4 (0 (null)) nvu-dev (0 (null))
> Provides:
> 4.8-0ubuntu1 -
> Reverse Provides:
>
> Thanks,
>
> Brian.
>

Re: libmozjs-dev conflict in Karmic

Posted by Brian Candler <B....@pobox.com>.
On Fri, Nov 06, 2009 at 01:06:45PM +0100, Fidel Viegas wrote:
> have you tried sudo apt-get install couchdb?

No, I don't want the 0.10.x or whatever which got bundled into Ubuntu; I
want to build the bleeding-edge from source.

Re: libmozjs-dev conflict in Karmic

Posted by Fidel Viegas <fi...@gmail.com>.
One last thing,

I have actually did something prior to installing couchdb. I updated
the list of repositories by doing sudo apt-get update first.

Then I did the installation of couchdb.

Fidel.

On Fri, Nov 6, 2009 at 1:06 PM, Fidel Viegas <fi...@gmail.com> wrote:
> Hi Brian,
>
> I have installed Ubuntu 9.10 from scratch yesterday and all I did was
> install couchdb from synaptic adapter. It all worked without any
> problems. It installed all the necessary libraries and did not remove
> my firefox installation.
>
> have you tried sudo apt-get install couchdb?
>
> All the best,
>
> Fidel.
>
> On Fri, Nov 6, 2009 at 12:16 PM, Brian Candler <B....@pobox.com> wrote:
>> I have updated my laptop from Xubuntu Jaunty to Karmic.
>>
>> I now find that if I install the libmozjs-dev package, required to build
>> couchdb, it insists on uninstalling Firefox. This is rather annoying.
>>
>> $ sudo apt-get install libmozjs-dev
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> The following extra packages will be installed:
>>  libnspr4-dev
>> The following packages will be REMOVED
>>  firefox firefox-3.5 firefox-3.5-branding ubufox xulrunner-1.9.1
>> The following NEW packages will be installed
>>  libmozjs-dev libnspr4-dev
>> 0 upgraded, 2 newly installed, 5 to remove and 0 not upgraded.
>> Need to get 0B/466kB of archives.
>> After this operation, 24.0MB disk space will be freed.
>> Do you want to continue [Y/n]? n
>> Abort.
>>
>> Is anybody else seeing this? Is it the same with a fresh Karmic install, or
>> just an artefact of the upgrade process?
>>
>> And is there someone here who knows enough about dpkg dependencies to work
>> out what the problem is? I can show some info but I can't see any obvious
>> conflicts.
>>
>> $ apt-cache showpkg libmozjs-dev
>> Package: libmozjs-dev
>> Versions:
>> 1.8.1.16+nobinonly-0ubuntu1 (/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_universe_binary-i386_Packages)
>>  Description Language:
>>                 File: /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_universe_binary-i386_Packages
>>                  MD5: b123ef11961280a2acecade73e16ccbd
>>
>>
>> Reverse Depends:
>>  xulrunner-1.9.1,libmozjs-dev
>>  libxul-dev,libmozjs-dev 1.8.1.16+nobinonly-0ubuntu1
>>  libsablot0-dev,libmozjs-dev
>>  xulrunner-1.9.1,libmozjs-dev
>> Dependencies:
>> 1.8.1.16+nobinonly-0ubuntu1 - libmozjs0d (2 1.8.1.16+nobinonly) libnspr4-dev (0 (null)) mozilla-browser (3 2:1.8)
>> Provides:
>> 1.8.1.16+nobinonly-0ubuntu1 -
>> Reverse Provides:
>>
>> $ apt-cache showpkg libnspr4-dev
>> Package: libnspr4-dev
>> Versions:
>> 4.8-0ubuntu1 (/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_main_binary-i386_Packages)
>>  Description Language:
>>                 File: /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_main_binary-i386_Packages
>>                  MD5: 5fb64e5ffcd6242fc78f56e991c9d6df
>>
>>
>> Reverse Depends:
>>  xulrunner-1.9.1-dev,libnspr4-dev
>>  libxul-dev,libnspr4-dev
>>  libmozjs-dev,libnspr4-dev
>>  xulrunner-1.9.1-dev,libnspr4-dev
>>  libnss3-dev,libnspr4-dev
>>  libnspr4-0d,libnspr4-dev 4.7.1+1.9-0ubuntu2
>>  libnspr4-0d,libnspr4-dev 4.7.1+1.9-0ubuntu2
>>  libedataserver1.2-dev,libnspr4-dev
>> Dependencies:
>> 4.8-0ubuntu1 - libnspr4-0d (2 4.8) libnspr4-0d (1 4.8-0ubuntu1.1~) libnspr-dev (0 (null)) libnspr4 (0 (null)) nvu-dev (0 (null))
>> Provides:
>> 4.8-0ubuntu1 -
>> Reverse Provides:
>>
>> Thanks,
>>
>> Brian.
>>
>

Re: libmozjs-dev conflict in Karmic

Posted by Adam Petty <ad...@gmail.com>.
I've just completed the same task using apt-get on karmic.

I recommend you attempt to "stop" couchdb using /etc/init.d/couchdb stop....
then browse to it.  It will report "stopped" and then not stop, and then
proceed to try to fill your /var/log/couch....  with restart errors until
you reboot your machine.

The couch repos are just not working well at the moment... so that's not
really an option either.

I reinstalled firefox after the uninstall and no issues at the moment...but
did I break something else, or was that req just for building couch?

On Nov 6, 2009 7:07 AM, "Fidel Viegas" <fi...@gmail.com> wrote:

Hi Brian,

I have installed Ubuntu 9.10 from scratch yesterday and all I did was
install couchdb from synaptic adapter. It all worked without any
problems. It installed all the necessary libraries and did not remove
my firefox installation.

have you tried sudo apt-get install couchdb?

All the best,

Fidel.

On Fri, Nov 6, 2009 at 12:16 PM, Brian Candler <B....@pobox.com> wrote:
> I have updated my lap...

Re: libmozjs-dev conflict in Karmic

Posted by Fidel Viegas <fi...@gmail.com>.
Hi Brian,

I have installed Ubuntu 9.10 from scratch yesterday and all I did was
install couchdb from synaptic adapter. It all worked without any
problems. It installed all the necessary libraries and did not remove
my firefox installation.

have you tried sudo apt-get install couchdb?

All the best,

Fidel.

On Fri, Nov 6, 2009 at 12:16 PM, Brian Candler <B....@pobox.com> wrote:
> I have updated my laptop from Xubuntu Jaunty to Karmic.
>
> I now find that if I install the libmozjs-dev package, required to build
> couchdb, it insists on uninstalling Firefox. This is rather annoying.
>
> $ sudo apt-get install libmozjs-dev
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
>  libnspr4-dev
> The following packages will be REMOVED
>  firefox firefox-3.5 firefox-3.5-branding ubufox xulrunner-1.9.1
> The following NEW packages will be installed
>  libmozjs-dev libnspr4-dev
> 0 upgraded, 2 newly installed, 5 to remove and 0 not upgraded.
> Need to get 0B/466kB of archives.
> After this operation, 24.0MB disk space will be freed.
> Do you want to continue [Y/n]? n
> Abort.
>
> Is anybody else seeing this? Is it the same with a fresh Karmic install, or
> just an artefact of the upgrade process?
>
> And is there someone here who knows enough about dpkg dependencies to work
> out what the problem is? I can show some info but I can't see any obvious
> conflicts.
>
> $ apt-cache showpkg libmozjs-dev
> Package: libmozjs-dev
> Versions:
> 1.8.1.16+nobinonly-0ubuntu1 (/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_universe_binary-i386_Packages)
>  Description Language:
>                 File: /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_universe_binary-i386_Packages
>                  MD5: b123ef11961280a2acecade73e16ccbd
>
>
> Reverse Depends:
>  xulrunner-1.9.1,libmozjs-dev
>  libxul-dev,libmozjs-dev 1.8.1.16+nobinonly-0ubuntu1
>  libsablot0-dev,libmozjs-dev
>  xulrunner-1.9.1,libmozjs-dev
> Dependencies:
> 1.8.1.16+nobinonly-0ubuntu1 - libmozjs0d (2 1.8.1.16+nobinonly) libnspr4-dev (0 (null)) mozilla-browser (3 2:1.8)
> Provides:
> 1.8.1.16+nobinonly-0ubuntu1 -
> Reverse Provides:
>
> $ apt-cache showpkg libnspr4-dev
> Package: libnspr4-dev
> Versions:
> 4.8-0ubuntu1 (/var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_main_binary-i386_Packages)
>  Description Language:
>                 File: /var/lib/apt/lists/gb.archive.ubuntu.com_ubuntu_dists_karmic_main_binary-i386_Packages
>                  MD5: 5fb64e5ffcd6242fc78f56e991c9d6df
>
>
> Reverse Depends:
>  xulrunner-1.9.1-dev,libnspr4-dev
>  libxul-dev,libnspr4-dev
>  libmozjs-dev,libnspr4-dev
>  xulrunner-1.9.1-dev,libnspr4-dev
>  libnss3-dev,libnspr4-dev
>  libnspr4-0d,libnspr4-dev 4.7.1+1.9-0ubuntu2
>  libnspr4-0d,libnspr4-dev 4.7.1+1.9-0ubuntu2
>  libedataserver1.2-dev,libnspr4-dev
> Dependencies:
> 4.8-0ubuntu1 - libnspr4-0d (2 4.8) libnspr4-0d (1 4.8-0ubuntu1.1~) libnspr-dev (0 (null)) libnspr4 (0 (null)) nvu-dev (0 (null))
> Provides:
> 4.8-0ubuntu1 -
> Reverse Provides:
>
> Thanks,
>
> Brian.
>