all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Guillaume Le Vaillant <glv@posteo.net>
To: Zacchaeus Scheffer <zaccysc@gmail.com>
Cc: 50897@debbugs.gnu.org
Subject: bug#50897: Octave package installation
Date: Sun, 10 Oct 2021 20:56:17 +0000	[thread overview]
Message-ID: <87o87w4may.fsf@kitej> (raw)
In-Reply-To: <CAJejy7=q3BOS1Bj9GgX3XGcaA1T7Q2nfxcM=VtTyT_nJ=3Bheg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2068 bytes --]

Zacchaeus Scheffer <zaccysc@gmail.com> skribis:

> Hi Guix!
>
> After installing octave, I tried to install the image package in octave in
> two ways.  One by running:
>> pkg install image-<version#>.tar.gz
> where image-<version#>.tar.gz is in my cwd.  I also tried installing with:
>> pkg install -forge image
> In both cases, I had the same problem.  The first error I was getting was:
>>configure: error: in `/tmp/oct-6RV451/image-2.12.0/src':
>>configure: error: C++ compiler cannot create executables
>
> This error can be fixed by installing gcc-toolchain.  After doing so,
> attempting to install image gives:
>>ld: cannot find -loctinterp
>>ld: cannot find -loctave
> repeatedly (full output below).  These libraries seem like they should be
> included in the octave installation, and also like they should be absolute
> paths.  I looked for any instance of octinterp in filenames and found these
> in the octave install:
> ./include/octave-6.2.0/octave/liboctinterp-build-info.h
> ./lib/octave/6.2.0/liboctinterp.la
> ./lib/octave/6.2.0/liboctinterp.so.8.0.1
> ./lib/octave/6.2.0/liboctinterp.so
> ./lib/octave/6.2.0/liboctinterp.so.8
> ./lib/pkgconfig/octinterp.pc
> I tried installing image with these in my cwd, but no dice.  Even if these
> are the correct library files, octave is installing this in my user
> directory so the cwd won't be the same.
>
> I need this to work for a class, so I'm willing to put in some hours (days)
> to make this work, but I'm pretty lost if anyone has ideas on where to go
> next.
>
> Thanks,
> Zacchae

Hi,

I was able to build an octave package after specifying the location of
the required libraries using the LDFLAGS environment variable:

--8<---------------cut here---------------start------------->8---
export LDFLAGS=-L${GUIX_PROFILE}/lib/octave/6.2.0
octave
pkg install xyz.tar.gz
pkg load xyz
--8<---------------cut here---------------end--------------->8---

However, it would be better to have an octave-build-system making Guix
able to build, install and setup Octave packages (e.g. Octave Forge
packages).

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

  reply	other threads:[~2021-10-10 21:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-29 18:06 bug#50897: Octave package installation Zacchaeus Scheffer
2021-10-10 20:56 ` Guillaume Le Vaillant [this message]
2021-10-11 16:33   ` Zacchaeus Scheffer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o87w4may.fsf@kitej \
    --to=glv@posteo.net \
    --cc=50897@debbugs.gnu.org \
    --cc=zaccysc@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.