Re: Installing ghc-7.10.2 linux binary distro on SuSE

2015-08-31 Thread Levent Erkok
Tuncer: The LD_PRELOAD trick and the patchelf magic solved the problem nicely.. I'd still prefer if a SuSE binary distro was available from the downloads page, for the good of the community. When I tried to build from source, I was getting all sorts of error messages even from the configure step;

Re: Installing ghc-7.10.2 linux binary distro on SuSE

2015-08-31 Thread Levent Erkok
Hi Aycan.. Indeed I was able to use patchelf, so I don't need the LD_PRELOAD trick anymore either. Thanks for the pointer.. As a side note: While I'm impressed with the level of trickery available to inject/remove/change arbitrary functionality to binaries, I'm also surprised to see how easy it wo

Re: Installing ghc-7.10.2 linux binary distro on SuSE

2015-08-31 Thread Aycan iRiCAN
I'm happy to see it worked. If you want to get rid of LD_PRELOAD, you may use patchelf to modify your binary to inject your fakelib. See 'add-needed' parameter here: https://github.com/NixOS/patchelf/blob/master/README On Mon, 31 Aug 2015 01:50 Levent Erkok wrote: > Thanks Aycan. The LD_PRELOAD

Re: Installing ghc-7.10.2 linux binary distro on SuSE

2015-08-30 Thread Tuncer Ayaz
On Sat, Aug 29, 2015 at 10:41 PM, Levent Erkok wrote: > Hello all, [...] > (Yes, I tried building from the source; but in the corporate > environment with so many things controlled, that did not go very > far.) What exactly failed? Have you tried using a same-distro-version SuSE chroot/container

Re: Installing ghc-7.10.2 linux binary distro on SuSE

2015-08-29 Thread Levent Erkok
I really like the idea of nix. Alas, generating native binaries that can run on SuSE without being in the nix environment is a requirement that's hard to let go. (Everyone in my group would have to start using nix, a tall order.) Thanks for the advice however, it can indeed come handy for one-off

Re: Installing ghc-7.10.2 linux binary distro on SuSE

2015-08-29 Thread Kosyrev Serge
Levent Erkok writes: > Hello all, > > I've been having a lot of trouble installing the binary-distro's on a > SuSE machine. Unfortunately, I don't have root privileges and thus my > options are rather limited. > > The problem seem to boil down to the use of the function > pthread_setname_np. It ap

Installing ghc-7.10.2 linux binary distro on SuSE

2015-08-29 Thread Levent Erkok
Hello all, I've been having a lot of trouble installing the binary-distro's on a SuSE machine. Unfortunately, I don't have root privileges and thus my options are rather limited. The problem seem to boil down to the use of the function pthread_setname_np. It appears the problem was noted before,