-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Linux] Default install to /usr/local/bin #131
Comments
These are all good points. I typically run Cabbage out of the build directory myself so never have to worry about this. Do you feel like making a PR for a better install script? I'd be happy to merge. How about the other resources (examples/documentation.etc), are they going into an acceptable location? |
No everything is currently going to reserved locations where they should be going to Simply changing the install script won't work, because the applications have their internal locations hardcoded to |
So I can just use the location of the current binary to set the path for the plugins, like I do on other platforms. So basically scrap the if !def...
After that we only need to ensure that the plugins are in the same folder as the main application binary. |
You shouldn't even need to think about the location of the binaries. If the user installed Cabbage, then all the Cabbage binaries are in the $PATH already. You should only have to call the binary name. The full path is irrelevant. (but maybe someone else needs to chime in on this :) ) |
It should be simple enough to test. I won't be at my Linux machine for a few days, but if you wish to go ahead and test this I'd be more than happy to hear how it goes 👍 |
I don't have time today to try and build Cabbage, but thanks for looking in to this :) |
I just ran into this issue on my Debian sid machine. I had edited the install script to put everything under /usr/local but as soon as I tried to export a VST I get the error message "/usr/bin/CabbagePluginSynth.so cannot be found? It should be in the Cabbage root folder". Personally I'd prefer an installation where all Cabbage-related files were under /usr/local/share/Cabbage, with symlinks from /usr/local/bin and /usr/local/lib as needed. It's hard to keep track of where all the locally-managed files on my system came from, and keeping all the files from one application in its own /usr/local/share folder really helps. |
Thanks @forrcaho Cabbage2 is EOL now. I'm happy to accept PR's for these changes. I'll be sure not to make the same mistake with Cabbage 3 ;) |
Unfortunately, I can't get this to build from source :-( |
What are the errors? The CI build for Linux seems to be passing without any issues. The steps it takes are outlined here: |
I'm on Debian sid. I had to change references to Here's a log of my build attempt. |
Are you sure you're building against the Csound6 branch? |
Seems like a different issue that should get a separate ticket? |
This should be fixed with the PR I just submitted #156 |
@forrcaho thank you! Hope to give this a try soon and will then close the ticket. |
Ok I'm now very confused to how I do a build or test anything /o\ |
When one runs the install-script it should default to
/usr/local/bin
Currently
/usr/bin
is used which is really bad practice. This is reserved for distro package manager installs and should never be used by third parties.Also if one chooses to install to an alternate directory a lot of functionality fails because paths have been hard-coded internally to
/usr/bin
.There is also a file
opcodes.txt
installed to the bin dir, which doesn't make any sense.Please correct these issues.
The text was updated successfully, but these errors were encountered: