From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sGgrL9hrcmDtbgAAgWs5BA (envelope-from ) for ; Sun, 11 Apr 2021 05:24:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KIEeKdhrcmBQPgAA1q6Kng (envelope-from ) for ; Sun, 11 Apr 2021 03:24:08 +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 0C46E2E776 for ; Sun, 11 Apr 2021 05:24:08 +0200 (CEST) Received: from localhost ([::1]:42170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVQhi-00021k-0U for larch@yhetil.org; Sat, 10 Apr 2021 23:24:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVQhT-00021c-Vw for help-guix@gnu.org; Sat, 10 Apr 2021 23:23:53 -0400 Received: from knopi.disroot.org ([178.21.23.139]:60922) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVQhR-0005jH-2s for help-guix@gnu.org; Sat, 10 Apr 2021 23:23:51 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id C915750CD0 for ; Sun, 11 Apr 2021 05:23:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9yKS5Asje18q for ; Sun, 11 Apr 2021 05:23:45 +0200 (CEST) From: Bone Baboon DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1618111424; bh=46yJxfEm6IeNG/ghBQKoRE8te5oB/4c65HFmLI6tASQ=; h=From:To:Subject:Date; b=KAQq7l4UrIgKMBW03b/iD2q+gcLmdbnOUCeJus5+UTVGwbLx/FK/gK2mebMHlZVYY lvqJRVGC0/n76ggB5h6+9F2PwVZLz7mxyQtfc+sFjWdpFl8WrOeP/KYaAKBzer4W/W 9Cvk2j/Bk9Mk1G81j5ulaNds/ClsEIvz5TLeaXN80eKlglsQTnyUw2KvLxE7eLX6cC 4SjLh9v9hYUbJ1R16FrHlqnmOmRglndsaGIfXCQeL1OHuM5IlBSO1Kq0w48XxmX8fA IxGx0xtdsAYj8iwuCzHyPXu6Fr2UDpobv/CEywsMf1xchZOyGOImSJ5bvXJITZMjS4 uvz2yogBBclYA== To: help-guix@gnu.org Subject: Haskell program build and run using Cabal Date: Sat, 10 Apr 2021 23:23:42 -0400 Message-ID: <87sg3xec75.fsf@disroot.org> Mime-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=178.21.23.139; envelope-from=bone.baboon@disroot.org; helo=knopi.disroot.org 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_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618111448; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=U9zIPHOzedpkoZutRhfFGpl6QWPuFgYMWnpsMJkO494=; b=VUqXWWNustJW4zle2ETaFiVu7p8jCUD9W3XWLT+ZPfZG2VBBVw7vCu+nzLRvugj+vSa5JK d4zUI/fx/VQDvDrcL0uV/AqIkQs89K0SZcoRZrk4mb2onSTIWhMTyId4A+nTIC65fx7VaZ lYEWG7qYs8waqYA+U+r6/J1KDwUAF9vHGPdIrq/4/E67cVvXZum6wEQkkkAJSvicObD4YQ LqWS3sYP4YGg3NUNfTTGpxDfLPYu15ab2YLazqmeqsY8uNKVjfvd04uxZnxZ7BZVaDWEEN MCUHYZVIFbo0Uq+XO8TP1M/irqd17YH5ih4KgT0ee0ZjGXCxsbLyEJtf3HhmCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618111448; a=rsa-sha256; cv=none; b=JVwMrYCva0suRx0gpYDVypa+EvZGxKbMBnoiMo1k9y04QdjP8VfuIJiiaN/JHMbMApXrkw 0Unhfk9NYEATUqggcGUbBJfBQtOqvFS1cwObQME2zORkvLIj35ioe9ciCbJqCyNRVGuyS5 adojvNbM4FfKVeNmwuXZrCmvW41NivTg5+1SA5yUX4j0WD4Q6m53evK2sbLgLL6zxfqx6h oOPIUbTjmfQaJLxtqBNlUkd6/hVRguZsnJA1BWKFk/6xe5Cp8bBVErWQlT5YvCMCRor48q cwbCyRypNQWLCbciqL35wV8KQQ0JYkoitSKf/YIRrv0HT20zGlGp33VxMJrKpQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=KAQq7l4U; dmarc=pass (policy=quarantine) header.from=disroot.org; 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-Migadu-Spam-Score: -2.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=KAQq7l4U; dmarc=pass (policy=quarantine) header.from=disroot.org; 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-Migadu-Queue-Id: 0C46E2E776 X-Spam-Score: -2.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: JClf9SRLrU+R I am trying to build a Haskell program from source and run it. I am using Cabal a Haskell build tool to do this. I am able to build and run this program without the following error messages on other Linux operating systems. `cabal --version` outputs: ``` cabal-install version 2.4.0.0 compiled using version 2.4.0.1 of the Cabal library ``` I have installed GHC a Haskell compiler. When I run `ghc --version` it outputs: ``` The Glorious Glasgow Haskell Compilation System, version 8.6.5 ``` When I run `cabal new-build` it outputs: ``` cabal: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with Cabal. Use the flag --package-db to specify a package database (it can be used multiple times). ``` After running `unset GHC_PACKAGE_PATH` I can build the program with `cabal new-build`. `unset GHC_PACKAGE_PATH` does not persist across different terminal emulator instances. Then when I try to run the program using `cabal new-run` I get this error message: ``` error while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory ``` I added `gmp` to my system configuration and reconfigured the system. However the error persists. The command `locate libgmp.so.10` shows that libgmp.so.10 is in the store. Doing an internet search for this error message shows people dealing with it by setting environment variables. With Cabal's `new-build` and `new-run` commands I am running into issues with environment variables. Are environment variables managed in Guix system configurations? I searched the Guix manual for the search term "environment variable" and did not see a prominent section on environment variables. That leads me to guess that in Guix environment variables are left to configuration files in the users home directory.