bugGNU Octave - Bugs: bug #57607, [octave forge] (netcdf) problems...

 
 

bug #57607: [octave forge] (netcdf) problems installing netcdf with libnetcdf in non-standard directory

Submitter:  None
Submitted:  Wed 15 Jan 2020 11:16:41 PM UTC
   
 
Category:  Octave Package Severity:  2 - Minor
Priority:  3 - Low Item Group:  None
Status:  Confirmed Assigned to:  None
Originator Name:  grg Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 16 Sep 2022 01:00:39 PM UTC, comment #3: 

How about in octave:

setenv('LDFLAGS', '-Wl,-rpath,/opt/netcdf/lib')


before running pkg install ?

John Donoghue <lostbard>
Group Member
Fri 29 Jan 2021 01:09:12 PM UTC, comment #2: 

Encounter the same problem when installing Octave 6.1.0 with flatpak. Practically, how to I set -rpath flag when using
pkg install netcdf -forge? (I guess the oct files mentioned below is created when this package is installed).

Or do I install the netcdf-package-tar-file and change flags in some file there?

Idar Barstad <idar>
Wed 15 Jan 2020 11:28:31 PM UTC, comment #1: 

This may also affect users who are not using Flatpak, so changing summary. The primary difficulty is that libnetcdf.so may be installed in a non-standard directory, such as $HOME/lib or /opt/netcdf/lib.

The nc-config program gives the -L options needed to link with the library at build time, but the user will probably still need to set LD_LIBRARY_PATH for Octave to be able to load the oct file.

Building the oct file with the -rpath option would allow the libnetcdf library to be found in the right directory without the user having to set LD_LIBRARY_PATH whenever they want to use this package.

Mike Miller <mtmiller>
Group Member
Wed 15 Jan 2020 11:16:41 PM UTC, original submission:  

please see this email trail describing difficulties in installing netcdf using octave installed with flatpak
https://github.com/flathub/org.octave.Octave/issues/86

To make this easier, it may be worth investigating adding the -rpath option to the build rules so the user doesn't have to set LD_LIBRARY_PATH

I hope this helps

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by idar (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-15 mtmiller Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        StatusNone Confirmed
        Release5.1.0 dev
        Summaryproblems installing netcdf with flatpak [octave forge] (netcdf) problems installing netcdf with libnetcdf in non-standard directory

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code