From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ECCAGIp/mV9WCwAA0tVLHw (envelope-from ) for ; Wed, 28 Oct 2020 14:26:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id IC1JFIp/mV9EGgAAB5/wlQ (envelope-from ) for ; Wed, 28 Oct 2020 14:26:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B61A194021E for ; Wed, 28 Oct 2020 14:26:17 +0000 (UTC) Received: from localhost ([::1]:47908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXmP2-0000Y7-Mx for larch@yhetil.org; Wed, 28 Oct 2020 10:26:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXlpZ-0003on-DU for help-guix@gnu.org; Wed, 28 Oct 2020 09:49:37 -0400 Received: from elegua.eauchat.org ([91.224.149.118]:45680 helo=eauchat.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXlpX-0002ZW-Cm for help-guix@gnu.org; Wed, 28 Oct 2020 09:49:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eauchat.org; s=mail; t=1603892969; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=9eypT/oSmYa1jKXmRqHJVRYXsLAXSOuYA3Hr24VgDDE=; b=KOb4ZGo08KZk0b7DSlCZ/5KPmFQU+IfdUx7Rn9+v8dcz85XIF7TKcrdIv4r7/5e4FsxfC3 AMKVl7ONvoTa8wcvqJ1wO78x+YoSvSxcdO6Zgqt679X/MP+C4CzDB2w+SymmFmM5RQPym8 g9/F6x6ZubZTMf4DwKz6964u8TKPSSQ= From: =?utf-8?Q?S=C3=A9bastien?= Lerique To: help-guix@gnu.org Subject: Profile's LD_LIBRARY_PATH by default Date: Wed, 28 Oct 2020 14:49:28 +0100 Message-ID: <877dra1mvr.fsf@eauchat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=91.224.149.118; envelope-from=sl@eauchat.org; helo=eauchat.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/28 09:49:30 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 28 Oct 2020 10:26:00 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=eauchat.org header.s=mail header.b=KOb4ZGo0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: 58D2RPoepM+5 Dear all, This question could stem from a simpler example, but I think in=20 this case it doesn't change much. So I'll go with my use case: While running a racket program which uses OpenCV, I realised that=20 my LD_LIBRARY_PATH does not contain my user's profile libs. I have=20 `libopencv*.so` in `~/.guix-profile/lib/`, but running a racket=20 program which needs that fails: ``` $ racket capture.rkt ffi-lib: couldn't open "libopencv_core.so" (libopencv_core.so:=20 cannot open shared object file: No such file or directory) ``` While running ``` env LD_LIBRARY_PATH=3D/home/sl/.guix-profile/lib/ racket capture.rkt ``` works. (Also, this is the output of `env=20 LD_DEBUG=3Dlibs racket capture.rkt`.) Is this normal behaviour, i.e. that the path to dynamic libs=20 installed in my user profile should be manually configured in my=20 shell startup scripts? Should this not be included in=20 `~/.guix-profile/etc/profile`? Thanks all, and best wishes! S=C3=A9bastien