Installation on Ubuntu 18.04

Install support for openEMS

Moderators: thorsten, sebastian

Post Reply
tsp
Posts: 1
Joined: Wed 06 Feb 2019, 10:40

Installation on Ubuntu 18.04

Post by tsp » Wed 06 Feb 2019, 11:05

Hello everyone,

I just tried to install from source on a Ubuntu-Mate 18.04. My goal is to simulate some PCB antennas but the installation already fails here.

Code: Select all

>> setup.m
setting up openEMS matlab/octave interface
compiling oct files
sh: 2: /usr/lib/x86_64-linux-gnu/hdf5/serial: Permission denied
sh: 3: /usr/include/hdf5/serial: Permission denied
HDF5 library path found at: /usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5.so
/usr/lib/x86_64-linux-gnu/hdf5/serial
HDF5 include path found at: /usr/include/hdf5/openmpi/hdf5.h
/usr/include/hdf5/serial
warning: mkoctfile: building exited with failure status
error: can't perform indexing operations for <unknown type> type
I don't know what mkoctfile is doing, as I'm running octave as a user the permissions for /usr/... are obviously read-only.
Any ideas? Throwing sudo at it, doesn't solve the issue.

Greetings,
Thorsten

thorsten
Posts: 1389
Joined: Mon 27 Jun 2011, 12:26

Re: Installation on Ubuntu 18.04

Post by thorsten » Wed 06 Feb 2019, 18:46

You shoult not need to use sudo to install openEMS or the octave hdf5 addon.
I'm not sure what cases the permission denied, I guess the find command may not access some folders..

What does the following commands tell you?

Code: Select all

find /usr/lib     -name libhdf5.so
find /usr/include -name hdf5.h
For me it is:

Code: Select all

/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so
/usr/include/hdf5/serial/hdf5.h
Try to compile the add-on manually (adept the pathes to your setup and output):

Code: Select all

cd ~/opt/openEMS/share/openEMS/matlab
mkoctfile -I/usr/include/hdf5/serial -L/usr/lib/x86_64-linux-gnu/hdf5/serial h5readatt_octave.cc
(This is pretty much what the setup.m tries to do automatically)

regards
Thorsten

Post Reply