[Csnd] sudo apt-get install csound6 ?
Date | 2013-12-01 08:58 |
From | zappfinger |
Subject | [Csnd] sudo apt-get install csound6 ? |
I was trying to install csound on my Ubuntu VM, and used: sudo apt-get install csound This seemed to work, but it installed version 5.17 So I tried: sudo apt-get install csound6 but I got: E: Unable to locate package csound6 What to do to install csound 6 on Linux? Richard -- View this message in context: http://csound.1045644.n5.nabble.com/sudo-apt-get-install-csound6-tp5730394.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-12-01 14:05 |
From | Dave Seidel |
Subject | Re: [Csnd] sudo apt-get install csound6 ? |
The Ubuntu repositories tend to lag behind with many packages, and I don't think there's an official csound6 package yet. Fortunately, it's quite easy to build it yourself. There’s a page with the instructions, though I'm traveling right now so I can't get to it easily. Maybe someone else can chime in. On Dec 1, 2013 3:58 AM, "zappfinger" <zappfinger@gmail.com> wrote:
I was trying to install csound on my Ubuntu VM, and used: |
Date | 2013-12-01 14:31 |
From | Rory Walsh |
Subject | Re: [Csnd] sudo apt-get install csound6 ? |
I think Felipe has updated the ubuntu packages, but I'm not sure if they are available for all flavours of Ubuntu. In any case you can build by doing this: 1. Clone the Csound6 git repo 2. cd to csound6 dir 3. mkdir build 4. cd build 5. cmake 6. make 7. sudo make install On 1 December 2013 14:05, Dave Seidel |
Date | 2013-12-01 14:41 |
From | Richard van Bemmelen |
Subject | Re: [Csnd] sudo apt-get install csound6 ? |
Thanks Rory, While we're on it: would this also work for the Raspberry PI? (Since I got one now...) Richard
2013/12/1 Rory Walsh <rorywalsh@ear.ie> I think Felipe has updated the ubuntu packages, but I'm not sure if |
Date | 2013-12-01 14:48 |
From | Rory Walsh |
Subject | Re: [Csnd] sudo apt-get install csound6 ? |
As far as I know it should, but I think most people are using pre-built binaries for Csound on those platforms. If you don't need Csound6 features I'd say you'd be better off going for a prebuilt Csound5. On 1 December 2013 14:41, Richard van Bemmelen |
Date | 2013-12-01 14:57 |
From | Dave Seidel |
Subject | Re: [Csnd] sudo apt-get install csound6 ? |
Yes, it does work on the Pi, just built it myself a couple of days ago. BTW, a very helpful preparatory step that Rory didn't mention: sudo apt-get build-dep csound On Dec 1, 2013 9:41 AM, "Richard van Bemmelen" <zappfinger@gmail.com> wrote:
|
Date | 2013-12-01 15:03 |
From | Rory Walsh |
Subject | Re: [Csnd] sudo apt-get install csound6 ? |
I always forget that one until it won't build for some reason! On 1 December 2013 14:57, Dave Seidel |
Date | 2013-12-01 15:40 |
From | Dave Seidel |
Subject | Re: [Csnd] sudo apt-get install csound6 ? |
Yeah, me too. My only issue on the Pi was that I had to edit sources.list, but that's no big deal. Oh, the other thing I had to do on Ubuntu, post-build, was to add /usr/local/lib to the ldconfig path, and then run sudo ldconfig (just a one-time thing). On Dec 1, 2013 10:05 AM, "Rory Walsh" <rorywalsh@ear.ie> wrote:
I always forget that one until it won't build for some reason! |
Date | 2013-12-01 16:24 |
From | Richard van Bemmelen |
Subject | Re: [Csnd] sudo apt-get install csound6 ? |
Hmm, I'm trying the regular csound (via apt-get) on the PI, and got this error: sudo csound -d -odac --sched -+rtaudio=alsa -Ma -b512 -B1024 bamboo.csd PortAudio real-time audio module for Csound
virtual_keyboard real time MIDI plugin for Csound PortMIDI real time MIDI plugin for Csound 0dBFS level = 32768.0 Csound version 5.17 (double samples) Apr 23 2013 libsndfile-1.0.25
UnifiedCSD: bamboo.csd STARTING FILE Creating options Creating orchestra Creating score rtmidi: PortMIDI module enabled RAWWAVE_PATH: /usr/share/stk/rawwaves/
rtaudio: ALSA module enabled Parsing successful! Elapsed time at end of orchestra compile: real: 0.043s, CPU: 0.050s sorting score ... ... done
Elapsed time at end of score sort: real: 0.044s, CPU: 0.050s Csound version 5.17 (double samples) Apr 23 2013 midi channel 1 using instr 1 midi channel 2 using instr 1 midi channel 3 using instr 1
midi channel 4 using instr 1 midi channel 5 using instr 1 midi channel 6 using instr 1 midi channel 7 using instr 1 midi channel 8 using instr 1 midi channel 9 using instr 1
midi channel 10 using instr 1 midi channel 11 using instr 1 midi channel 12 using instr 1 midi channel 13 using instr 1 midi channel 14 using instr 1 midi channel 15 using instr 1
midi channel 16 using instr 1 displays suppressed 0dBFS level = 32768.0 The available MIDI in devices are: 0: Midi Through Port-0 (ALSA) PortMIDI: Activated input device 0: 'Midi Through Port-0' (ALSA)
orch now loaded audio buffered in 512 sample-frame blocks *** Cannot open device 'default' for audio input: No such file or directory Failed to initialise real time audio input
inactive allocs returned to freespace end of score. overall amps: 0.0 overall samples out of range: 0
1 errors in performance 2013/12/1 Dave Seidel <dave.seidel@gmail.com>
|
Date | 2013-12-01 22:22 |
From | zappfinger |
Subject | [Csnd] Re: sudo apt-get install csound6 ? |
Ok, managed to compile csound6 on Ubuntu. How to get csnd6 now ? (The Python API wrapper) Richard -- View this message in context: http://csound.1045644.n5.nabble.com/sudo-apt-get-install-csound6-tp5730394p5730429.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-12-01 22:26 |
From | Richard van Bemmelen |
Subject | Re: [Csnd] Re: sudo apt-get install csound6 ? |
Ok, it's in the build folder, just wasn't in the path yet.... 2013/12/1 zappfinger <zappfinger@gmail.com> Ok, managed to compile csound6 on Ubuntu. How to get csnd6 now ? (The Python |
Date | 2013-12-02 01:35 |
From | Dave Seidel |
Subject | Re: [Csnd] Re: sudo apt-get install csound6 ? |
On my Pi, csnd6.py was copied to /usr/local/lib. Not sure if this is atypical for Python modules, or if my Python installation is not fully configured, but Python is not searching that directory on my system. My quick-and-dirty solution is to run Python with the prefix PYTHONPATH=/usr/local/lib (though adding "export PYTHONPATH=/usr/local/lib" to ~/.bashrc would also work).
On Sun, Dec 1, 2013 at 5:26 PM, Richard van Bemmelen <zappfinger@gmail.com> wrote:
|
Date | 2013-12-02 08:39 |
From | Andreas Bergsland |
Subject | Re: [Csnd] sudo apt-get install csound6 ? |
Attachments | andreas_bergsland.vcf |
Hi, I built csound6 on Ubuntu 12.04 following the instructions on the wiki (http://sourceforge.net/p/csound/wiki/Build_Debian_Ubuntu/), and everything seemed to build without problems (no error messages), but when I try to run csound, I get error while loading shared libraries: libcsound64.so.6.0: cannot open shared object file: No such file or directory Will the ldconfig path thing fix that? And how do I add /usr/local/lib to the path? Best, Andreas
-- Andreas Bergsland, postdoktor Musikkteknologiseksjonen Institutt for musikk Olavskvartalet NTNU 7491 Trondheim Besøksadresse: Fjordgt.1 (3.etg.) e-post: andreas.bergsland@ntnu.no Web: http://folk.ntnu.no/andbe Tlf: 7359 0096 Mob: 4566 3316 |
Date | 2013-12-02 09:46 |
From | Francois PINOT |
Subject | Re: [Csnd] sudo apt-get install csound6 ? |
Normally ldconfig will do and /usr/local/lib should already be in the lib path (you should have a libc.conf file in /etc/ld.so.conf.d that does the trick). If it's not the case, you should add a file named for example 'mylibs.conf' into /etc/ld.so.conf.d. That file should include one text line: /usr/local/lib. Hope this helps.2013/12/2 Andreas Bergsland <andreas.bergsland@ntnu.no>
|
Date | 2013-12-02 10:56 |
From | Tarmo Johannes |
Subject | Re: [Csnd] sudo apt-get install csound6 ? |
Hi! Did you set the plugin directory?
like:
export OPCODE6DIR64=/home/tarmo/src/cs6/lib/csound/plugins64-6.0
if it works, it is convenient to add the line to you .bashrc file in your home directory
hope it helps.
tarmo
On Monday 02 December 2013 09:39:43 Andreas Bergsland wrote: Hi, Yeah, me too. My only issue on the Pi was that I had to edit sources.list, but that's no big deal. Oh, the other thing I had to do on Ubuntu, post-build, was to add /usr/local/lib to the ldconfig path, and then run sudo ldconfig (just a one-time thing). On Dec 1, 2013 10:05 AM, "Rory Walsh" <rorywalsh@ear.ie> wrote: I always forget that one until it won't build for some reason! --
Andreas Bergsland,
postdoktor
Musikkteknologiseksjonen
Institutt for musikk
Olavskvartalet
NTNU
7491 Trondheim
Besøksadresse: Fjordgt.1 (3.etg.)
e-post: andreas.bergsland@ntnu.no Web: http://folk.ntnu.no/andbe Tlf: 7359 0096
Mob: 4566 3316
|
Date | 2013-12-02 20:58 |
From | Richard van Bemmelen |
Subject | Re: [Csnd] Re: sudo apt-get install csound6 ? |
I copy csnd6.py to /usr/local/lib and did the export trick, the import csnd6 starts, but now it complains that it cannot open shared object file libcsound64.so.6.0...
Any more files I need to copy around? 2013/12/2 Dave Seidel <dave.seidel@gmail.com>
|
Date | 2013-12-03 07:57 |
From | Andreas Bergsland |
Subject | Re: [Csnd] sudo apt-get install csound6 ? |
Attachments | andreas_bergsland.vcf |
sudo ldconfig did the trick! Perfect, thanks! Andreas
-- Andreas Bergsland, postdoktor Musikkteknologiseksjonen Institutt for musikk Olavskvartalet NTNU 7491 Trondheim Besøksadresse: Fjordgt.1 (3.etg.) e-post: andreas.bergsland@ntnu.no Web: http://folk.ntnu.no/andbe Tlf: 7359 0096 Mob: 4566 3316 |
Date | 2013-12-07 14:55 |
From | zappfinger |
Subject | [Csnd] Re: sudo apt-get install csound6 ? |
When I try to do this on the RPi, I get: E: You must put some 'source' URIs in your sources.list why? Richard -- View this message in context: http://csound.1045644.n5.nabble.com/sudo-apt-get-install-csound6-tp5730394p5730633.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2013-12-07 15:04 |
From | Justin Smith |
Subject | Re: [Csnd] Re: sudo apt-get install csound6 ? |
Source repos and binary repos are separate. is the error in trying to do this: sudo apt-get build-dep csound ? build-dep is meant to be a step for building an existing package from source (with customizations if wanted), and you need the source repo to get the source package to build.
You can set your apt sources using /etc/apt/sources.list - you can copy a line starting with deb ... to a new one saying deb-src ... in order to access the source repository with the equivalent packages.
On Sat, Dec 7, 2013 at 6:55 AM, zappfinger <zappfinger@gmail.com> wrote: When I try to do this on the RPi, I get: |
Date | 2013-12-07 16:41 |
From | Dave Seidel |
Subject | Re: [Csnd] Re: sudo apt-get install csound6 ? |
On my Pi, I had to change my /etc/apt/sources.list from deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
to deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi deb-src http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
In other words, I duplicated the line and changed "deb" to "deb-src". On Sat, Dec 7, 2013 at 10:04 AM, Justin Smith <noisesmith@gmail.com> wrote:
|
Date | 2013-12-08 08:47 |
From | Richard van Bemmelen |
Subject | Re: [Csnd] Re: sudo apt-get install csound6 ? |
Thanks guys, adding the deb-src line worked after running apt-get update. 2013/12/7 Dave Seidel <dave.seidel@gmail.com>
|