supercolliderjs icon indicating copy to clipboard operation
supercolliderjs copied to clipboard

Use "which" to find sclang on a linux box?

Open hems opened this issue 9 years ago • 4 comments

I just realised the default installation might be /usr/bin instead of /usr/local/bin ( I'm running a Raspberry here ).

As i'm not totally familiar with the code i wrote the solution in an standalone example so hopefully you can integrate this the best way possible:

function which( callback ) {
    var spawn = require( 'child_process' ).spawn
    spawn( 'which', [ 'sclang' ] ).stdout.on( 'data', function( data ) {
        callback( data.toString() );
    });
}


which( function( path ){ console.log( path ) });

hems avatar Apr 22 '15 17:04 hems

or we could just say that you should have sclang and scsynth on your path.

with the homebrew OS X version about to be available, then even mac will have them on their path.

and then there is no need for supercolliderjs to configure it at all.

crucialfelix avatar Apr 22 '15 17:04 crucialfelix

yeah makes total sense.. then perhaps close this?

hems avatar Apr 22 '15 19:04 hems

Now I'm thinking that maybe the default for linux should be just 'sclang' — it should assume that you have it installed.

crucialfelix avatar Jan 16 '17 18:01 crucialfelix

indeed should assume you have it installed and/or maybe make an argument to specify the binary in case you want to run a different one.

hems avatar Feb 09 '17 19:02 hems