ArrayFire.jl icon indicating copy to clipboard operation
ArrayFire.jl copied to clipboard

ArrayFire could not load libaf.so.3

Open danielorihuela opened this issue 5 years ago • 3 comments

After installing ArrayFire through the Julia Package manager and trying to run a simple program:

using Pkg
Pkg.add("ArrayFire")
using ArrayFire

const a = rand(10, 10)
const ad = AFArray(a)

I obtain the following error:

2020-09-12_21-02

I tried installing libarrayfire-unified3 but I get the same error. After that I decided to go inside my julia installation folder, specifically: /opt/julia-1.5.1/lib/julia and move libstdc++.so.6 to libstdc++.so.6_old so that I could create a symbolic link with my system libstdc++.so.6 (ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /opt/julia-1.5.1/lib/julia). The problem was solved, however I got another error that I could not fix.

2020-09-12_20-58

My system has a Kubuntu distribution. Linux 5.4.0-47-generic.

danielorihuela avatar Sep 12 '20 19:09 danielorihuela

You need a more recent version of arrayfire library, the one that you got doesn't have sparse array support yet.

ghost avatar Sep 12 '20 19:09 ghost

I tried installing the ArrayFire version 3.7.2 from binary into /usr/local and I keep having the same problem. Any idea? Thanks

danielorihuela avatar Sep 14 '20 17:09 danielorihuela

I'm actually having the same problem. I just installed ArrayFire v1.0.7 and when I try using it I get an error that libaf.so.e cannot load. Any idea what I could do to fix this problem?

francispoulin avatar Apr 12 '21 13:04 francispoulin