[Neurodebian-users] Installation issues PTB Octave

Mario Kleiner mario.kleiner.de at gmail.com
Wed Mar 2 00:45:19 UTC 2016


On 03/02/2016 01:32 AM, Yaroslav Halchenko wrote:
>
> On Tue, 01 Mar 2016, Neil Dundon wrote:
>
>> Thanks for the reply Yaroslav,
>
>> That worked!  I ran (sudo) apt-get install liboctave-dev any reason why the
>> install didn't take care of that?
>
> What happened is that on older systems using octave2 libraries versioned
> suffix got stripped while linking against that library:
>
> % for d in *amd64; do echo -n "$d "; ldd $d/usr/share/octave/site/m/psychtoolbox-3/PsychBasic/PsychPortAudio.mex | grep liboctinterp; done
> octave-psychtoolbox-3_3.0.12.20160126.dfsg1-1_amd64     liboctinterp.so.3 => not found
> octave-psychtoolbox-3_3.0.12.20160126.dfsg1-1~nd14.04+1_amd64   liboctinterp.so => not found
> octave-psychtoolbox-3_3.0.12.20160126.dfsg1-1~nd15.04+1_amd64   liboctinterp.so => not found
> octave-psychtoolbox-3_3.0.12.20160126.dfsg1-1~nd15.10+1_amd64   liboctinterp.so.3 => not found
> octave-psychtoolbox-3_3.0.12.20160126.dfsg1-1~nd+1_amd64        liboctinterp.so.3 => not found
> octave-psychtoolbox-3_3.0.12.20160126.dfsg1-1~nd80+1_amd64      liboctinterp.so => not found
> octave-psychtoolbox-3_3.0.12.20160126.dfsg1-1~nd90+1_amd64      liboctinterp.so.3 => not found
>
> so they got linked against plain .so which is a symlink provided only by -dev package.
> We will fix it for the next upload, thanks for the report!
> Meanwhile indeed just install liboctave-dev as a workaround
>

That's probably because following your tip, i modified the 
striplibsfrommexfile.m file to rename the liboctinterp.so.[23] 
dependency from .so.1 or .so.2 to only .so, so i don't need to build and 
ship separate mex files for Octave-3 vs. Octave-4 although the required 
libraries are api/abi compatible.

Maybe your version of striplibsfrommexfile.m needs to carry a patch to 
avoid that rename?

>
>> As it happens, I also had to run sudo apt-get upgrade alsa-utils to get
>> PsychPortAudio to work...
>
> what was the error?  I wonder if -utils is really what needed or some
> missing library somehow
>

It needs libasound.so the ALSA runtime library. I don't think it needs 
-utils, although those come in handy anyway for tweaking of ALSA for 
some use cases.

cheers,
-mario



More information about the Neurodebian-users mailing list