Hi,

I'm trying to install nix on CentOS 6.5. As I do not have root access,
it seems to be that I need to install from source. I managed to get as
far as to the linking stage at which point I get the message at subject.

Here's my process after some experimentation.

* Download the zip of the repository.

* Try to run configure as per instructions, file doesn't exist[1].

* Try to run autoconf, it complains about AC_DEFINED (autoconf 2.63) but
creates configure anyway

* mkdir -p ~/nix-install/nix/var
  mkdir -p ~/nix-install/nix/store
  mkdir -p ~/nix-install/usr/local

* mkdir ~/perl-modules

* Download needed tarballs from CPAN, install with that PREFIX.

* Try to run configure, it complains about PKG_CHECK_MODULES syntax. I
manually go in, comment out those lines and set the resulting
definitions to what the result should by (so HAVE_OPENSSL=1).

* Run configure again, missing dependencies on perl modules

* My final configure line is:

./configure --prefix=$HOME/nix-install/usr/local
--with-store-dir=$HOME/nix-install/nix/store
--localstatedir=$HOME/nix-install/nix/var
--with-dbd-sqlite=$HOME/perl-modules/lib64/perl5
--with-dbi=$HOME/perl-modules/lib64/perl5

* All dependencies are met but it complains about config.h.in. If I try
to make here I get tons of errors.

* Find online that I should have ran `autoheader`. Run it, re-run
autoconf, fix up configure file again

* make

  At this stage the error at subject appears:

  LD     src/nix-hash/nix-hash
/usr/bin/ld: src/nix-hash/nix-hash: undefined reference to symbol
'pthread_cancel@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_cancel@@GLIBC_2.2.5' is defined in DSO
/lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

I don't know how to hack it further to make it work. I tried setting
LDFLAGS="-lpthread $LDFLAGS" in configure.ac and it gets propagated to
configure file but it seems to make no difference. Running
‘LDFLAGS=-lpthread make’ similarly seems to have no effect.

Is this something that someone overlooked?

The Nix manual should be updated in light of [1] or the repository fixed up.

[1]: https://github.com/NixOS/nix/issues/282

-- 
Mateusz K.
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to