# Csound can't open external plugins

**URL:** <https://forum.csound.com/t/csound-cant-open-external-plugins/1333>\
**Category:** General\
**Created:** [September 5, 2023, 2:40pm UTC](https://forum.csound.com/t/csound-cant-open-external-plugins/1333 "2023-09-05T14:40:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasonHallen](https://forum.csound.com/user_avatar/forum.csound.com/jasonhallen/32/32_2.png) [@JasonHallen](https://forum.csound.com/u/JasonHallen)\
**Post date:** [September 5, 2023, 2:40pm UTC](https://forum.csound.com/t/csound-cant-open-external-plugins/1333/1 "2023-09-05T14:40:04Z")

</div>

Hi everyone,

I’m on macOS 13.5.1 (M1 chip) running Csound 6.18. Csound isn’t able to load the plugins that are sitting in the plugins64 folder. Here’s the error I’m seeing when I run `csound -z` in the command line.

```csound
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libjsfx.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libpathtools.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libelse.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libbeosc.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libcsound_webserver.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/librisset.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libklib.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libsndmeta.dylib' (-1)
WARNING: could not open library '/Users/hallenj/Library/csound/6.0/plugins64/libpoly.dylib' (-1)

```

Is there a way I can adjust the permissions on these libraries so that Csound can open them? I’ve already tried giving the libraries the rwx permissions for all users via `chmod`, but Csound still can’t open them. Otherwise, is there an alternative way to load plugins on macOS?

Thanks!  
Jason

---

<div class="post-metadata">

**Author:** ![stevenyi](https://forum.csound.com/user_avatar/forum.csound.com/stevenyi/32/4_2.png) [@stevenyi](https://forum.csound.com/u/stevenyi)\
**Post date:** [September 5, 2023, 4:30pm UTC](https://forum.csound.com/t/csound-cant-open-external-plugins/1333/2 "2023-09-05T16:30:29Z")

</div>

It’s likely not a permissions issue but rather an architecture one. I may be wrong, but last I checked those libs were only published for x86\_64.

---

<div class="post-metadata">

**Author:** ![JasonHallen](https://forum.csound.com/user_avatar/forum.csound.com/jasonhallen/32/32_2.png) [@JasonHallen](https://forum.csound.com/u/JasonHallen)\
**Post date:** [September 5, 2023, 4:51pm UTC](https://forum.csound.com/t/csound-cant-open-external-plugins/1333/3 "2023-09-05T16:51:35Z")

</div>

Ah, thanks. Interestingly, I was able to get Michael Gogins’ libcsound\_webserver.dylib running on my ARM64 laptop a year ago by placing it in the plugins64 directory. Something must have changed in the past year that causes it not to work anymore. Could be the macOS or Csound updates I’ve done, I suppose.

---

<div class="post-metadata">

**Author:** ![eduardomoguillansky](https://forum.csound.com/user_avatar/forum.csound.com/eduardomoguillansky/32/437_2.png) [@eduardomoguillansky](https://forum.csound.com/u/eduardomoguillansky)\
**Post date:** [September 6, 2023, 7:57am UTC](https://forum.csound.com/t/csound-cant-open-external-plugins/1333/4 "2023-09-06T07:57:20Z")

</div>

To check if the dylibs are of the correct platform, do

```nohighlight

file libelse.dylib

```

That should return something like `libelse.dylib: Mach-O 64-bit arm64 dynamically linked shared library...`, which is what is returned from latest release. It is a security problem related to those plugins not being codesigned.

To authorize a .dylib do:

```csound
codesign --force -s - /path/to/dylib

```

---

<div class="post-metadata">

**Author:** ![JasonHallen](https://forum.csound.com/user_avatar/forum.csound.com/jasonhallen/32/32_2.png) [@JasonHallen](https://forum.csound.com/u/JasonHallen)\
**Post date:** [September 6, 2023, 11:23am UTC](https://forum.csound.com/t/csound-cant-open-external-plugins/1333/5 "2023-09-06T11:23:15Z")

</div>

Thanks Eduardo! Running `file [dylib name]` returns `Mach-O 64-bit dynamically linked shared library x86_64` for all the dylibs. I installed csoundengine with `pip`, which I believe installed these dylibs with risset. Is there a way I can install the ARM64 versions of these dylibs?

Jason

---

<div class="post-metadata">

**Author:** ![JasonHallen](https://forum.csound.com/user_avatar/forum.csound.com/jasonhallen/32/32_2.png) [@JasonHallen](https://forum.csound.com/u/JasonHallen)\
**Post date:** [September 6, 2023, 12:26pm UTC](https://forum.csound.com/t/csound-cant-open-external-plugins/1333/6 "2023-09-06T12:26:36Z")

</div>

I found the ARM64 versions of the plugins at [Release v1.18.2 · csound-plugins/csound-plugins · GitHub](https://github.com/csound-plugins/csound-plugins/releases/tag/v1.18.2). I downloaded the zip file, extracted it, and put the dylibs in the plugins64 folder. The zip file included most of the dylibs that had been installed for csoundengine, but I noticed that libjsfx.dylib and libsndmeta.dylib weren’t in the zip file so couldn’t be updated to the ARM64 versions.

When I ran `csound -z` I was getting this error message:

`“[libname].dylib” can’t be opened because Apple cannot check it for malicious software.`

So at least Csound is now recognizing these dylibs because they have the correct architecture. I ran `codesign --force -s - /path/to/dylib` for each dylib, and the output for each said `[libname].dylib: replacing existing signature`. However, I still get the same error message above when running `csound -z`.

Do you have any other suggestions for authorizing these dylibs?

Thanks!  
Jason

---

<div class="post-metadata">

**Author:** ![JasonHallen](https://forum.csound.com/user_avatar/forum.csound.com/jasonhallen/32/32_2.png) [@JasonHallen](https://forum.csound.com/u/JasonHallen)\
**Post date:** [September 6, 2023, 12:37pm UTC](https://forum.csound.com/t/csound-cant-open-external-plugins/1333/7 "2023-09-06T12:37:21Z")

</div>

Ah, I figured out a solution. I just right clicked on the dylibs and selected “Open”. This opened the dialog asking me to approve opening an executable that was downloaded from the internet. One I approved each of the dylibs they now load successfully in Csound.

**libjsfx.dylib** and **libsndmeta.dylib** still don’t load in Csound because they are on x86\_64, so I’m not sure if that will impact the use of csoundengine.

I was able to import csoundengine in Python and successfully create an `Engine().session()`. Woohoo! Thanks for your help.

Jason
