[Csnd] Debian binary of csnd6 or a build without root privileges
Date | 2014-02-28 13:09 |
From | David Worrall |
Subject | [Csnd] Debian binary of csnd6 or a build without root privileges |
Hello all, I know less about building/running Csound on Linux than a lost anything else, so if this is answered elsewhere please just point me to it.. I have a colleague on Debian Linux machine who wants to run csound6 but doesn't have root privileges on his machine. (Institution policy). Q1: Is there a binary that installs and runs locally (i.e. without using /usr/lib etc) on Debian? Q2: Is there a known (i.e. documented) way of building csnd6 without needing to place the (sndfile etc) libraries in these root privileges directorys? thanks for your help, David ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-02-28 13:24 |
From | Michael Gogins |
Subject | Re: [Csnd] Debian binary of csnd6 or a build without root privileges |
The minimal requirements for running Csound on Debian are: -- OPCODE6DIR64 must point to the location of the plugin opcodes and other loadable modules. -- The Csound shared library must be configured by ldconfig, or its directory must be included in LD_LIBRARY_PATH
These requirements can be met by building Csound in a subdirectory of your home directory, then pointing OPCODE6DIR64 and LD_LIBRARY_PATH to that subdirectory. Then you use just Csound from its build directory. This is what I do, except I use ldconfig and not LD_LIBRARY_PATH.
Hope this helps, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Feb 28, 2014 at 8:09 AM, David Worrall <david.worrall@iis.fraunhofer.de> wrote:
|
Date | 2014-02-28 13:29 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Debian binary of csnd6 or a build without root privileges |
Can he ask to have this package installed? https://packages.debian.org/sid/csound That would be the easiest way. Victor On 28 Feb 2014, at 13:09, David Worrall |
Date | 2014-02-28 13:34 |
From | David Worrall |
Subject | Re: [Csnd] Debian binary of csnd6 or a build without root privileges |
Hi Mike, I'll pass it on and see how far we get. So the dependencies can all be built and used from the home directory as well? I notice for building ccmake v 2.8.3. is required. Is it a "hard' problem to use 2.8.2? Thanks, David On 28.02.2014, at 14:24, Michael Gogins <michael.gogins@gmail.com> wrote:
______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-02-28 13:37 |
From | David Worrall |
Subject | Re: [Csnd] Debian binary of csnd6 or a build without root privileges |
On 28.02.2014, at 14:29, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: Can he ask to have this package installed?I think maybe - but he'll need to configure it to work with a local python. But it is worth a try. Currenly he's a bit overwhelmed by all the (mostly) dead-end paths build options - and the csounds website doesn't help much in that regard (I'm reporting... :-) David https://packages.debian.org/sid/csound ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-02-28 13:42 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Debian binary of csnd6 or a build without root privileges |
yes, just specify your local directory as the installation target when configuring the dependency build. For libsndfile ./configure —prefix=PREFIX the installation will go in PREFIX/include PREFIX/lib PREFIX/bin etc Regards Victor On 28 Feb 2014, at 13:34, David Worrall |
Date | 2014-02-28 13:43 |
From | Michael Gogins |
Subject | Re: [Csnd] Debian binary of csnd6 or a build without root privileges |
On Linux and Unix, it should be possible to build everything in the home directory and then install it with the install prefix set to the home directory. Then things would be installed (e.g. by using make install) to something like /home/mkg/bin, /home/mkg/lib, /home/mkg/include, and so on. These locations in turn would have to be set up using ldconfig and LD_LIBRARY_PATH, and set for the various build systems that use those dependencies. This is all standard and expected.
This approach should work not only for all third party dependencies but also for Csound itself. My first email assumed that Csound's dependencies had already been installed.
Hope this helps, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Feb 28, 2014 at 8:37 AM, David Worrall <david.worrall@iis.fraunhofer.de> wrote:
|
Date | 2014-02-28 13:45 |
From | jpff@cs.bath.ac.uk |
Subject | [Csnd] Re: |
Attachments | None |
Date | 2014-02-28 14:01 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Debian binary of csnd6 or a build without root privileges |
This is what he should do: 1. install libsndfile (./configure etc) 2. for realtime audio he will need the alsa lib headers to be installed (so that is something he might need to ask) 3. Follow the instructions here from "The following numbered steps are to be done in a terminal for building and installing Csound” (ignored the apt-get instructions as they can’t be done without root access). http://sourceforge.net/p/csound/wiki/Build_Debian_Ubuntu/ but before running cmake (step 7), edit the Custom.cmake.ex file and save it as Custom.cmake, adding these lines list(APPEND CMAKE_SYSTEM_INCLUDE_PATH “ |
Date | 2014-02-28 14:07 |
From | Michael Gogins |
Subject | Re: [Csnd] Debian binary of csnd6 or a build without root privileges |
Victor's instructions should go in the manual or in the wiki. Thanks, Mike -----------------------------------------------------
Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Feb 28, 2014 at 9:01 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: This is what he should do: |
Date | 2014-02-28 14:20 |
From | David Worrall |
Subject | Re: [Csnd] Debian binary of csnd6 or a build without root privileges |
Thanks to you all for you help. We'll see how we get on and I'll report back. David On 28.02.2014, at 14:45, jpff@cs.bath.ac.uk wrote: I build on Debian without using root access. Biggest problem is Quoting David Worrall <david.worrall@iis.fraunhofer.de>:On 28.02.2014, at 14:29, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:Can he ask to have this package installed?I think maybe - but he'll need to configure it to work with a local ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |
Date | 2014-02-28 15:08 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Debian binary of csnd6 or a build without root privileges |
Ok, I’ve built Csound on ubuntu with no root access. Here’s the full set of instructions: 1) set up your local directory $ cd $ mkdir include $ mkdir lib $ mkdir bin $ mkdir src $ export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH (this last command can be added to your $HOME/.profile file for convenience) 2) get and install libsndfile $ cd src $ wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz $ tar xf libsndfile-1.0.25.tar.gz $ cd libsndfile-1.0.25 $ ./configure --prefix=$HOME $ make install 3) get Csound (latest from git) $ cd .. $ git clone http://git.code.sf.net/p/csound/csound6-git csound-csound6-git $ cd csound-csound6-git $ git checkout develop $ mv Custom.cmake.ex Custom.cmake 4) Open Custom.cmake and add the following lines: list(APPEND CMAKE_SYSTEM_INCLUDE_PATH "$ENV{HOME} /include") list(APPEND CMAKE_SYSTEM_LIBRARY_PATH "$ENV{HOME)/lib") 5) build Csound $ mkdir build $ cd build $ cmake -DCMAKE_INSTALL_PREFIX=$HOME .. $ make install This builds a basic system. If you add dependencies to your $HOME directories, then you can run make again to build them. The csound command-line frontend will be installed in $HOME/bin. These instructions require a full development system (compilers, flex, bison, cmake). For RT audio you need to make sure you have the alsa headers / devel package installed. Victor On 28 Feb 2014, at 14:20, David Worrall |
Date | 2014-02-28 15:10 |
From | Michael Gogins |
Subject | Re: [Csnd] Debian binary of csnd6 or a build without root privileges |
Thanks, Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Feb 28, 2014 at 10:08 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: Ok, I’ve built Csound on ubuntu with no root access. Here’s the full set of instructions: |
Date | 2014-02-28 15:11 |
From | Michael Gogins |
Subject | Re: [Csnd] Debian binary of csnd6 or a build without root privileges |
Thanks,
Mike ----------------------------------------------------- Michael GoginsIrreducible Productions http://michaelgogins.tumblr.com Michael dot Gogins at gmail dot com On Fri, Feb 28, 2014 at 10:08 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: Ok, I’ve built Csound on ubuntu with no root access. Here’s the full set of instructions: |