From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4OuQAoj3I2FrMQAAgWs5BA (envelope-from ) for ; Mon, 23 Aug 2021 21:31:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AF+jOYf3I2EQGwAAbx9fmQ (envelope-from ) for ; Mon, 23 Aug 2021 19:31:19 +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 4998517124 for ; Mon, 23 Aug 2021 21:31:19 +0200 (CEST) Received: from localhost ([::1]:59400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIFfA-0005My-TP for larch@yhetil.org; Mon, 23 Aug 2021 15:31:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIFeq-0005Mi-KI for help-guix@gnu.org; Mon, 23 Aug 2021 15:30:56 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:33454) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIFeo-0003AQ-KL for help-guix@gnu.org; Mon, 23 Aug 2021 15:30:56 -0400 Received: by mail-lj1-x22d.google.com with SMTP id s12so8215783ljg.0 for ; Mon, 23 Aug 2021 12:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=AwOePXsHK7Yf0dC5TUaFg6oSkk3BF8rT2ZAyxSHRmN0=; b=qRIEUAEPcvOyUn8E/UNyjwu9V56+iPMsI9LrkMT7ha9BRn+o0Tp3k42SrbsSaS9+gV ERL1XBYe6e5Sm14yiKOidVGjtGUonLN84Maa8RcKwJNoLQ0mKhOKxcdBmNJtUZ0i+4sv EmKHdDn5lU2gUZtk5VDjUlNC/OhFjbGCibXA+OHsYsMRdbRUa5RzkJKSItPCC0I8xexe 9mS0clIFKP9thJy1KH1X/x7UGNCOkAcT7IBSeNFF0/ekJSkI+bS7TPRIOQTFQNRbrDlh AcXSliBOHc10TYhRMwPMxUaq/ZN4fLo6uti/fb6aUAraDgd1l3CPelo513cdrLVE7Xiy UAPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=AwOePXsHK7Yf0dC5TUaFg6oSkk3BF8rT2ZAyxSHRmN0=; b=MnK0DARqczg2pp7nDRmnXJjwD0IcJLn4qKoJWmrjGB0n2pPKjOGvNMCqrgb2pOE7Um lRZY7+8zwthS8hE7ncbE5fQi7sXBdRse3YCBU9kAUgvFfh8Cz/12INei3MaK0572+tuZ FBjLGEKRZ/wzgxdxb0Ewx8Wh28CmLYBlLh9EjbSY/hYAzxKrFGmdW+FzICz+neawEnGY V1vWw2aI75LO+Fw5azuiPpJD1QNYP2OvLMP9jZri2Gju9BMRnKR7dxcLNBzlzLQvkW0v NcTtShzy8GzcCb+OcvODme5J6VWTSzmk7sxjOICnsAQfe7z2rTsIT5smjaNS0+yaWzji dM8w== X-Gm-Message-State: AOAM532/rKYMRyCsuanGrXxpalncgJJ3adBtnMPnq+a/wJ+ACGAx1yDT bMk/cVroxcS5DayF3EwQf0K7HmYrTsuVsunOOB4= X-Google-Smtp-Source: ABdhPJxlrnpn7JWmF1NAZFfqWwuVhHvTBrUxdcUejuJc48KsT7YR+CirSthLBIIYuIczFF7d0ict65p3ejRzxiH/Yg4= X-Received: by 2002:a05:651c:551:: with SMTP id q17mr28443538ljp.239.1629747052193; Mon, 23 Aug 2021 12:30:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Wade Zhang Date: Tue, 24 Aug 2021 03:30:34 +0800 Message-ID: Subject: Re: Issue about building python on a foreign distro To: zimoun Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=dochang@gmail.com; helo=mail-lj1-x22d.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Cc: help-guix 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=1629747079; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=AwOePXsHK7Yf0dC5TUaFg6oSkk3BF8rT2ZAyxSHRmN0=; b=loi7RUwh66mSG/6pwpWxG7gAx8UM2bqjZS1lekJKW7MQcMfXsDjnA1VDLw4XPkSk600gVY 9g2JmPwhua+aPdQldI3ZItH1yFGAWV/f0w7x3nu23HLjUklF1mKMoitzVIJKMPhG7a09LO PKB9EVASi30iO5shA5JEaHGHe5Xz1ClPE5hR2tK3XacnDwwEyAn/n8pMoT041CEEGfOGZJ Wzm1DFQdm2PiaeuD+Ls1Ya1xVVCWHRKjptWCH8UJ3RITVSU3dPZY0h+D2kSTU57/s5F2VE mrZKz4wM/kNthJRzS94Ts1QTfpcoYa8ID91gg6cM0KXQuAbozeeSahlVzMaXPw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629747079; a=rsa-sha256; cv=none; b=o2zc6iAGWXAj7Vt3T+Y8rJ4Mh096BEDVjKd+PSOSyrEb2QOtNBmOoXJz4AghKbbMnbzqbw usdZ5VqhwjE3X+tSZMg/r3k2D4S6CTEg+J1/QIZZxIFrRSobdBTKk5TibHcZobuHXgdBWa d2+sSac7FXVPbJ/EzvPoObREtoJxxh/+B2zkJQ1ZOTxt39sVY80PEFXVwEk49yaNQguZpC zZEIA2ws7xSWYATLefXmmdLKZTJashkKps6oEU1rriQo5CGvxt16CVt646h961ORQdMK+H TT7EOadDvpn4KYwgeK5WvzvYhWceVWk5kFo0hg7uKmiRunq6PQaQ/mpLYDrmOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=qRIEUAEP; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=qRIEUAEP; dmarc=pass (policy=none) header.from=gmail.com; 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: 4998517124 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: uI5B+q+xcM/1 On Tue, Aug 24, 2021 at 12:41 AM zimoun wrote: > > Hi, > > Welcome! :-) Thank you for your reply! > > It seems all dependencies installed by Guix are not found. > > Well, do you do > > source ~/.guix-profile/etc/profile > > after installing all the dependencies (gcc-toolchain, bzip2, etc.) I'm sure I did. Is there anything I missed? ``` doc@VM-8-2-debian:~$ env | grep ^PATH PATH=3D/home/doc/.yarn/bin:/home/doc/.cargo/bin:/home/doc/bin:/home/doc/.an= yenv/envs/pyenv/shims:/home/doc/.anyenv/envs/pyenv/bin:/home/doc/.anyenv/bi= n:/home/doc/.guix-profile/bin:/home/doc/.guix-profile/sbin:/home/doc/.confi= g/guix/current/bin:/home/doc/.guix-profile/bin:/home/doc/.guix-profile/sbin= :/home/doc/.config/guix/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/local= /games:/usr/games doc@VM-8-2-debian:~$ env | grep GUIX_PROFILE GUIX_PROFILE=3D/home/doc/.guix-profile _GUIX_PROFILE=3D/home/doc/.config/guix/current doc@VM-8-2-debian:~$ command -v gcc /home/doc/.guix-profile/bin/gcc ``` > > > Could you please tell me the reason of these errors and how to fix them= ? > > I do not use 'pyenv' and I had bad experience when mixing "package > manager". To have other Python versions than the default ones, I > would create variant by using package transformation pyenv allows you to set python version for your every project by putting a `.python-version` file, and you can easily override the version with an environment variable. All you need to do is just setting your `PATH`. I t= hink it's very useful when you're working with multiple projects. > > guix build python > --with-source=3Dpython=3Dhttps://www.python.org/ftp/python/3.8.11/Python-= 3.8.11.tar.xz > > but there is no guarantee it works for all the versions. Well, I would > start by a package transformation at the command-line and if it fails > then compile --without-tests or create a package variant and use > --load-path. > > > Hope that helps, > simon