From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco van Hulten Subject: Re: libX11 not found after binary install of Guix Date: Mon, 25 Feb 2019 11:37:19 +0100 Message-ID: <20190225113719.616ea1d5@gfi063209.klientdrift.uib.no> References: <20190222181842.19c515bd@gfi063209.klientdrift.uib.no> <87pnrj3cb9.fsf@elephly.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/Cu9HHS0b66KjsJhH5=OutKY" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:36921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyDdh-0006cV-2M for help-guix@gnu.org; Mon, 25 Feb 2019 05:37:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyDde-0004EP-SH for help-guix@gnu.org; Mon, 25 Feb 2019 05:37:36 -0500 Received: from alfons.uib.no ([2001:700:200:30::141]:37942) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gyDda-00045u-Vu for help-guix@gnu.org; Mon, 25 Feb 2019 05:37:33 -0500 In-Reply-To: <87pnrj3cb9.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ricardo Wurmus Cc: Guix-Help --MP_/Cu9HHS0b66KjsJhH5=OutKY Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Ricado=E2=80=94 On 22 Feb 19:31 Ricardo Wurmus wrote: > Marco van Hulten writes: > > On a freshly installed Ubuntu 18.04 I installed Guix following the > > instructions on, except for the fact that I did it from grml in a > > chroot(8)ed environment > > > > https://www.gnu.org/software/guix/manual/en/html_node/Binary-Instal= lation.html > > > > Rebooting into Ubuntu I was happy to find that guix-daemon was running. > > Then I tried install something: > > > > $ guix package -i hello > > /gnu/store/q19l04vd2za80mk1845pz7r8cz29qk43-bash-minimal-4.4.23/bin/bas= h: error while loading shared libraries: libX11.so.6: cannot open shared ob= ject file: No such file or directory =20 >=20 > Bash shouldn=E2=80=99t want to load libX11.so.6. I wonder what prints th= is > line. Is your bashrc telling the shell to load extra libraries? Could > you share the output of =E2=80=9Cenv=E2=80=9D perhaps? It is attached. When I removed the LD_PRELOAD variable, the problem disappeared. It appears that spectrwm(1) sets LD_PRELOAD. It looks like that spectrwm keeps on working fine when I override it in my .bashrc. > > At least on the host system it exists: > > > > $ ls -l $(locate libX11.so.6) > > lrwxrwxrwx 1 root root 15 Aug 29 20:18 /usr/lib/x86_64-linux-gnu/l= ibX11.so.6 -> libX11.so.6.3.0 > > -rw-r--r-- 1 root root 1277384 Aug 29 20:18 /usr/lib/x86_64-linux-gnu/l= ibX11.so.6.3.0 > > $ file /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0 > > /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0: ELF 64-bit LSB shared object= , x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=3D46d02d32191= b5470a70bf6710997bf89b8b8ae38, stripped =20 >=20 > This shouldn=E2=80=99t matter. Guix will not use things that are on your= system > unless you force it (e.g. via LD_LIBRARY_PATH). This variable was not set. Thanks for your help! =E2=80=94Marco --MP_/Cu9HHS0b66KjsJhH5=OutKY Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=env.txt LC_ALL=en_US.utf8 LANG=en_GB.utf8 HISTCONTROL= LESS=-R DISPLAY=:0 _SWM_PID=8118 FER_DSETS=/scratch/fer_dsets EDITOR=vi PLOTFONTS=/Home/siv29/mhu027/installed/ferret/ppl/fonts XDG_VTNR=7 SSH_AUTH_SOCK=/tmp/ssh-2g3D9r9pYHlp/agent.2878 XDG_SESSION_ID=1 XTERM_SHELL=/bin/bash USER=mhu027 PAGER=less GUIX_LOCPATH=/Home/siv29/mhu027/.guix-profile/lib/locale FER_GRIDS=/scratch/fer_dsets/grids FER_DATA=. /Home/siv29/mhu027/ferret/complot/data /scratch/fer_dsets/data PWD=/Home/siv29/mhu027/system/Guix HOME=/Home/siv29/mhu027 SSH_AGENT_PID=2925 _SWM_WS=2 QT_ACCESSIBILITY=1 KRB5CCNAME=FILE:/tmp/krb5cc_96252_Bna6EJ XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop FER_FONTS=/Home/siv29/mhu027/installed/ferret/ppl/fonts FER_DESCR=/scratch/fer_dsets/descr TMPDIR=/tmp SWM_STARTED=YES XTERM_VERSION=XTerm(330) SAL_USE_VCLPLUGIN=gtk GTK_MODULES=gail:atk-bridge WINDOWPATH=7 TERM=xterm SHELL=/bin/bash GPG_AGENT_INFO=/run/user/96252/gnupg/S.gpg-agent:0:1 XDG_SEAT=seat0 SHLVL=2 LANGUAGE=en_US.UTF-8 MANPATH=:/opt/puppetlabs/puppet/share/man WINDOWID=35651599 FER_DIR=/Home/siv29/mhu027/installed/ferret XDG_CACHE_HOME=/var/cache/users/mhu027/.cache LOGNAME=mhu027 DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/96252/bus XDG_RUNTIME_DIR=/run/user/96252 FER_GO=/Home/siv29/mhu027/ferret/complot/scripts /Home/siv29/mhu027/installed/ferret/go /Home/siv29/mhu027/ferret/scripts_UiB PATH=/home/mhu027/.guix-profile/bin:/home/mhu027/.config/guix/current/bin:/Home/siv29/mhu027/bin:/Home/siv29/mhu027/installed/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin LD_PRELOAD=/usr/lib/spectrwm/libswmhack.so.0.0 FER_PALETTE=/Home/siv29/mhu027/ferret/complot/palettes /Home/siv29/mhu027/ferret/palettes /Home/siv29/mhu027/installed/ferret/ppl XTERM_LOCALE=en_DK.UTF-8 GTK_IM_MODULE=xim _=/usr/bin/env OLDPWD=/Home/siv29/mhu027/system --MP_/Cu9HHS0b66KjsJhH5=OutKY--