Csound Csound-dev Csound-tekno Search About

[Csnd] selecting one of two csound versions on linux

Date2013-05-09 12:34
Fromjoachim heintz
Subject[Csnd] selecting one of two csound versions on linux
hi all -

how can i tell a linux system (ubuntu 10.10) to use the csound version 
in /usr/local/bin instead of the one in /usr/bin?

background: for a sound installation, i found on a machine a csound 
version (5.17) which was installed from the repository. the osc opcodes 
were missing, so i had to compile another csound version (5.19). this 
went without problems, and when i started qutecsound (0.6.1), it used 
the version which i compiled myself without asking anything.
but after restarting the computer, qutecsound again used the old 
(repository) version, and i don't know how i can pervent this.

thanks for any help -

	joachim

Date2013-05-09 12:52
FromJustin Smith
SubjectRe: [Csnd] selecting one of two csound versions on linux
$ which csound

the output will tell you which version would be called

$ /usr/local/bin/csound

specifies the precise location of the executable to be called

$ echo $PATH

tells you the configuration the shell is using for looking up executables, it searches each dir in that sequence left to right until it finds a matching filename

If you are using bash, your PATH will be configured in /etc/profile /etc/bash.bashrc ~/.login, ~/.profile, ~/.bashrc, ~/.bash-login and/or ~/.bash-profile. Some of these prevent others from loading, if they exist, any of them can modify your PATH variable. The bash manual describes the order of precedence and the times at which each would be loaded. If you are not using bash, refer to the manual for the login shell you use.


On Thu, May 9, 2013 at 4:34 AM, joachim heintz <jh@joachimheintz.de> wrote:
hi all -

how can i tell a linux system (ubuntu 10.10) to use the csound version in /usr/local/bin instead of the one in /usr/bin?

background: for a sound installation, i found on a machine a csound version (5.17) which was installed from the repository. the osc opcodes were missing, so i had to compile another csound version (5.19). this went without problems, and when i started qutecsound (0.6.1), it used the version which i compiled myself without asking anything.
but after restarting the computer, qutecsound again used the old (repository) version, and i don't know how i can pervent this.

thanks for any help -

        joachim


Send bugs reports to the Sourceforge bug tracker
           https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"



Date2013-05-09 13:36
Fromjpff@cs.bath.ac.uk
SubjectRe: [Csnd] selecting one of two csound versions on linux
et PATH to look at local first -- normal setting


> hi all -
>
> how can i tell a linux system (ubuntu 10.10) to use the csound version
> in /usr/local/bin instead of the one in /usr/bin?
>
> background: for a sound installation, i found on a machine a csound
> version (5.17) which was installed from the repository. the osc opcodes
> were missing, so i had to compile another csound version (5.19). this
> went without problems, and when i started qutecsound (0.6.1), it used
> the version which i compiled myself without asking anything.
> but after restarting the computer, qutecsound again used the old
> (repository) version, and i don't know how i can pervent this.
>
> thanks for any help -
>
> 	joachim
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>



Date2013-05-09 15:55
Fromjoachim heintz
SubjectRe: [Csnd] selecting one of two csound versions on linux
thanks for the quick reply. the problem, as i see it now more precisely: 
in the terminal the csound version in /usr/local/bin is used, and that 
is also what PATH suggests (looks for /usr/local/bin first, and then for 
/usr/bin). but qutecsound nevertheless uses the version in /usr/bin, and 
i didn't get it not to do so.

root of the problem is actually that the repository version comes 
without the OSC opcodes. hopefully this can be changed in future, or 
already has perhaps.

	joachim


Am 09.05.2013 13:52, schrieb Justin Smith:
> $ which csound
>
> the output will tell you which version would be called
>
> $ /usr/local/bin/csound
>
> specifies the precise location of the executable to be called
>
> $ echo $PATH
>
> tells you the configuration the shell is using for looking up
> executables, it searches each dir in that sequence left to right until
> it finds a matching filename
>
> If you are using bash, your PATH will be configured in /etc/profile
> /etc/bash.bashrc ~/.login, ~/.profile, ~/.bashrc, ~/.bash-login and/or
> ~/.bash-profile. Some of these prevent others from loading, if they
> exist, any of them can modify your PATH variable. The bash manual
> describes the order of precedence and the times at which each would be
> loaded. If you are not using bash, refer to the manual for the login
> shell you use.
>
>
> On Thu, May 9, 2013 at 4:34 AM, joachim heintz  > wrote:
>
>     hi all -
>
>     how can i tell a linux system (ubuntu 10.10) to use the csound
>     version in /usr/local/bin instead of the one in /usr/bin?
>
>     background: for a sound installation, i found on a machine a csound
>     version (5.17) which was installed from the repository. the osc
>     opcodes were missing, so i had to compile another csound version
>     (5.19). this went without problems, and when i started qutecsound
>     (0.6.1), it used the version which i compiled myself without asking
>     anything.
>     but after restarting the computer, qutecsound again used the old
>     (repository) version, and i don't know how i can pervent this.
>
>     thanks for any help -
>
>              joachim
>
>
>     Send bugs reports to the Sourceforge bug tracker
>     https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
>     
>     Discussions of bugs and features can be posted here
>     To unsubscribe, send email sympa@lists.bath.ac.uk
>      with body "unsubscribe csound"
>
>

Date2013-05-09 16:55
FromKITA
SubjectRe: [Csnd] selecting one of two csound versions on linux
Hi joachim,

Is the repository version really without OSC opcodes?
Is that simply because your ubuntu server lacks liblo (OSC library) or not?
If yes, try
sudo apt-get install liblo7
(liblo7 might be another name depending on the ubuntu version)
i hope it helps.

Kita

(2013年05月09日 23:55), joachim heintz wrote:
> thanks for the quick reply. the problem, as i see it now more precisely: in the terminal the csound version in /usr/local/bin is used, and that is also what PATH suggests (looks for /usr/local/bin first, and then for /usr/bin). but qutecsound nevertheless uses the version in /usr/bin, and i didn't get it not to do so.
> 
> root of the problem is actually that the repository version comes without the OSC opcodes. hopefully this can be changed in future, or already has perhaps.
> 
>     joachim
> 
> 
> Am 09.05.2013 13:52, schrieb Justin Smith:
>> $ which csound
>>
>> the output will tell you which version would be called
>>
>> $ /usr/local/bin/csound
>>
>> specifies the precise location of the executable to be called
>>
>> $ echo $PATH
>>
>> tells you the configuration the shell is using for looking up
>> executables, it searches each dir in that sequence left to right until
>> it finds a matching filename
>>
>> If you are using bash, your PATH will be configured in /etc/profile
>> /etc/bash.bashrc ~/.login, ~/.profile, ~/.bashrc, ~/.bash-login and/or
>> ~/.bash-profile. Some of these prevent others from loading, if they
>> exist, any of them can modify your PATH variable. The bash manual
>> describes the order of precedence and the times at which each would be
>> loaded. If you are not using bash, refer to the manual for the login
>> shell you use.
>>
>>
>> On Thu, May 9, 2013 at 4:34 AM, joachim heintz > > wrote:
>>
>>     hi all -
>>
>>     how can i tell a linux system (ubuntu 10.10) to use the csound
>>     version in /usr/local/bin instead of the one in /usr/bin?
>>
>>     background: for a sound installation, i found on a machine a csound
>>     version (5.17) which was installed from the repository. the osc
>>     opcodes were missing, so i had to compile another csound version
>>     (5.19). this went without problems, and when i started qutecsound
>>     (0.6.1), it used the version which i compiled myself without asking
>>     anything.
>>     but after restarting the computer, qutecsound again used the old
>>     (repository) version, and i don't know how i can pervent this.
>>
>>     thanks for any help -
>>
>>              joachim
>>
>>
>>     Send bugs reports to the Sourceforge bug tracker
>>     https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
>>     
>>     Discussions of bugs and features can be posted here
>>     To unsubscribe, send email sympa@lists.bath.ac.uk
>>      with body "unsubscribe csound"
>>
>>
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 

-- 
KITA Toshihiro
http://tkita.net/


Date2013-05-09 17:33
Fromjoachim heintz
SubjectRe: [Csnd] selecting one of two csound versions on linux
thanks, i will try this too.
	joachim


Am 09.05.2013 17:55, schrieb KITA:
> Hi joachim,
>
> Is the repository version really without OSC opcodes?
> Is that simply because your ubuntu server lacks liblo (OSC library) or not?
> If yes, try
> sudo apt-get install liblo7
> (liblo7 might be another name depending on the ubuntu version)
> i hope it helps.
>
> Kita
>
> (2013年05月09日 23:55), joachim heintz wrote:
>> thanks for the quick reply. the problem, as i see it now more precisely: in the terminal the csound version in /usr/local/bin is used, and that is also what PATH suggests (looks for /usr/local/bin first, and then for /usr/bin). but qutecsound nevertheless uses the version in /usr/bin, and i didn't get it not to do so.
>>
>> root of the problem is actually that the repository version comes without the OSC opcodes. hopefully this can be changed in future, or already has perhaps.
>>
>>      joachim
>>
>>
>> Am 09.05.2013 13:52, schrieb Justin Smith:
>>> $ which csound
>>>
>>> the output will tell you which version would be called
>>>
>>> $ /usr/local/bin/csound
>>>
>>> specifies the precise location of the executable to be called
>>>
>>> $ echo $PATH
>>>
>>> tells you the configuration the shell is using for looking up
>>> executables, it searches each dir in that sequence left to right until
>>> it finds a matching filename
>>>
>>> If you are using bash, your PATH will be configured in /etc/profile
>>> /etc/bash.bashrc ~/.login, ~/.profile, ~/.bashrc, ~/.bash-login and/or
>>> ~/.bash-profile. Some of these prevent others from loading, if they
>>> exist, any of them can modify your PATH variable. The bash manual
>>> describes the order of precedence and the times at which each would be
>>> loaded. If you are not using bash, refer to the manual for the login
>>> shell you use.
>>>
>>>
>>> On Thu, May 9, 2013 at 4:34 AM, joachim heintz >> > wrote:
>>>
>>>      hi all -
>>>
>>>      how can i tell a linux system (ubuntu 10.10) to use the csound
>>>      version in /usr/local/bin instead of the one in /usr/bin?
>>>
>>>      background: for a sound installation, i found on a machine a csound
>>>      version (5.17) which was installed from the repository. the osc
>>>      opcodes were missing, so i had to compile another csound version
>>>      (5.19). this went without problems, and when i started qutecsound
>>>      (0.6.1), it used the version which i compiled myself without asking
>>>      anything.
>>>      but after restarting the computer, qutecsound again used the old
>>>      (repository) version, and i don't know how i can pervent this.
>>>
>>>      thanks for any help -
>>>
>>>               joachim
>>>
>>>
>>>      Send bugs reports to the Sourceforge bug tracker
>>>      https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
>>>      
>>>      Discussions of bugs and features can be posted here
>>>      To unsubscribe, send email sympa@lists.bath.ac.uk
>>>       with body "unsubscribe csound"
>>>
>>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>

Date2013-05-09 17:54
FromKITA
SubjectRe: [Csnd] selecting one of two csound versions on linux
Another possible way is to execute qutecsound at command line like this:

env  LD_LIBRARY_PATH=/usr/local/lib/ PATH=/usr/local/bin/  /usr/bin/qutecsound

Possibly qutecsound will seek for the manually installed csound if you use this command.
(assuming that libcsound64.so is under /usr/local/lib/)
but i am not so sure it works..

(2013年05月10日 01:33), joachim heintz wrote:
> thanks, i will try this too.
>     joachim
> 
> 
> Am 09.05.2013 17:55, schrieb KITA:
>> Hi joachim,
>>
>> Is the repository version really without OSC opcodes?
>> Is that simply because your ubuntu server lacks liblo (OSC library) or not?
>> If yes, try
>> sudo apt-get install liblo7
>> (liblo7 might be another name depending on the ubuntu version)
>> i hope it helps.
>>
>> Kita
>>
>> (2013年05月09日 23:55), joachim heintz wrote:
>>> thanks for the quick reply. the problem, as i see it now more precisely: in the terminal the csound version in /usr/local/bin is used, and that is also what PATH suggests (looks for /usr/local/bin first, and then for /usr/bin). but qutecsound nevertheless uses the version in /usr/bin, and i didn't get it not to do so.
>>>
>>> root of the problem is actually that the repository version comes without the OSC opcodes. hopefully this can be changed in future, or already has perhaps.
>>>
>>>      joachim
>>>
>>>
>>> Am 09.05.2013 13:52, schrieb Justin Smith:
>>>> $ which csound
>>>>
>>>> the output will tell you which version would be called
>>>>
>>>> $ /usr/local/bin/csound
>>>>
>>>> specifies the precise location of the executable to be called
>>>>
>>>> $ echo $PATH
>>>>
>>>> tells you the configuration the shell is using for looking up
>>>> executables, it searches each dir in that sequence left to right until
>>>> it finds a matching filename
>>>>
>>>> If you are using bash, your PATH will be configured in /etc/profile
>>>> /etc/bash.bashrc ~/.login, ~/.profile, ~/.bashrc, ~/.bash-login and/or
>>>> ~/.bash-profile. Some of these prevent others from loading, if they
>>>> exist, any of them can modify your PATH variable. The bash manual
>>>> describes the order of precedence and the times at which each would be
>>>> loaded. If you are not using bash, refer to the manual for the login
>>>> shell you use.
>>>>
>>>>
>>>> On Thu, May 9, 2013 at 4:34 AM, joachim heintz >>> > wrote:
>>>>
>>>>      hi all -
>>>>
>>>>      how can i tell a linux system (ubuntu 10.10) to use the csound
>>>>      version in /usr/local/bin instead of the one in /usr/bin?
>>>>
>>>>      background: for a sound installation, i found on a machine a csound
>>>>      version (5.17) which was installed from the repository. the osc
>>>>      opcodes were missing, so i had to compile another csound version
>>>>      (5.19). this went without problems, and when i started qutecsound
>>>>      (0.6.1), it used the version which i compiled myself without asking
>>>>      anything.
>>>>      but after restarting the computer, qutecsound again used the old
>>>>      (repository) version, and i don't know how i can pervent this.
>>>>
>>>>      thanks for any help -
>>>>
>>>>               joachim
>>>>
>>>>
>>>>      Send bugs reports to the Sourceforge bug tracker
>>>>      https://sourceforge.net/__tracker/?group_id=81968&atid=__564599
>>>>      
>>>>      Discussions of bugs and features can be posted here
>>>>      To unsubscribe, send email sympa@lists.bath.ac.uk
>>>>       with body "unsubscribe csound"
>>>>
>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>
>>>
>>
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 

-- 
KITA Toshihiro
http://tkita.net/