[linux] MP3 class - lame and curl permissions?

View: New views
9 Messages — Rating Filter:   Alert me  

[linux] MP3 class - lame and curl permissions?

by Martin . :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I get this error when I try the MP3 class:

Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
sh: /usr/lib: Permission denied
RESULT = 32256
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
WARNING:
String.unixCmdInferPID - unable to be sure of the lib PID.
Compared: [ 0 ] against [ 0 ] with result [  ]
Difference function returns [  ]
MP3.start completed (PID unknown)

I've set the right path to lame and curl (when I do
File.exists(MP3.lamepath) and File.exists(MP3.curlpath) it returns
'true'), and changed the permissions for the files. Am I missing
something?

cheers,
martin

_______________________________________________
sc-users mailing list


info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: [linux] MP3 class - lame and curl permissions?

by Dan Stowell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi -

Are you on Linux? I developed it on Mac and it's possible that the
"ps" command behaves differently, not sure.

Dan

2008/6/29 Martin . <blindmanonacid@...>:

> Hi,
>
> I get this error when I try the MP3 class:
>
> Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
> sh: /usr/lib: Permission denied
> RESULT = 32256
> Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
> WARNING:
> String.unixCmdInferPID - unable to be sure of the lib PID.
> Compared: [ 0 ] against [ 0 ] with result [  ]
> Difference function returns [  ]
> MP3.start completed (PID unknown)
>
> I've set the right path to lame and curl (when I do
> File.exists(MP3.lamepath) and File.exists(MP3.curlpath) it returns
> 'true'), and changed the permissions for the files. Am I missing
> something?
>
> cheers,
> martin
>
> _______________________________________________
> sc-users mailing list
>
>
> info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>



--
http://www.mcld.co.uk

_______________________________________________
sc-users mailing list


info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: [linux] MP3 class - lame and curl permissions?

by Martin . :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

yes im on linux. is it working for anyone else on linux?

martin

On Sun, Jun 29, 2008 at 10:49 AM, Dan Stowell <danstowell@...> wrote:

> Hi -
>
> Are you on Linux? I developed it on Mac and it's possible that the
> "ps" command behaves differently, not sure.
>
> Dan
>
> 2008/6/29 Martin . <blindmanonacid@...>:
>> Hi,
>>
>> I get this error when I try the MP3 class:
>>
>> Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
>> sh: /usr/lib: Permission denied
>> RESULT = 32256
>> Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
>> WARNING:
>> String.unixCmdInferPID - unable to be sure of the lib PID.
>> Compared: [ 0 ] against [ 0 ] with result [  ]
>> Difference function returns [  ]
>> MP3.start completed (PID unknown)
>>
>> I've set the right path to lame and curl (when I do
>> File.exists(MP3.lamepath) and File.exists(MP3.curlpath) it returns
>> 'true'), and changed the permissions for the files. Am I missing
>> something?
>>
>> cheers,
>> martin
>>
>> _______________________________________________
>> sc-users mailing list
>>
>>
>> info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
>> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
>> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>>
>
>
>
> --
> http://www.mcld.co.uk
>
> _______________________________________________
> sc-users mailing list
>
>
> info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>

_______________________________________________
sc-users mailing list


info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: [linux] MP3 class - lame and curl permissions?

by nescivi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 29 June 2008 04:49:07 Dan Stowell wrote:
> Hi -
>
> Are you on Linux? I developed it on Mac and it's possible that the
> "ps" command behaves differently, not sure.

What's the command being sent from SC?
I tried looking into the source code, but didn't see where this was
happening...

sincerely,
Marije

>
> Dan
>
> 2008/6/29 Martin . <blindmanonacid@...>:
> > Hi,
> >
> > I get this error when I try the MP3 class:
> >
> > Warning: bad ps syntax, perhaps a bogus '-'? See
> > http://procps.sf.net/faq.html sh: /usr/lib: Permission denied
> > RESULT = 32256
> > Warning: bad ps syntax, perhaps a bogus '-'? See
> > http://procps.sf.net/faq.html WARNING:
> > String.unixCmdInferPID - unable to be sure of the lib PID.
> > Compared: [ 0 ] against [ 0 ] with result [  ]
> > Difference function returns [  ]
> > MP3.start completed (PID unknown)
> >
> > I've set the right path to lame and curl (when I do
> > File.exists(MP3.lamepath) and File.exists(MP3.curlpath) it returns
> > 'true'), and changed the permissions for the files. Am I missing
> > something?
> >
> > cheers,
> > martin
> >
> > _______________________________________________
> > sc-users mailing list
> >
> >
> > info (subscribe and unsubscribe):
> > http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive:
> > http://www.listarc.bham.ac.uk/marchives/sc-users/
> > search: http://www.listarc.bham.ac.uk/lists/sc-users/search/



_______________________________________________
sc-users mailing list


info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: [linux] MP3 class - lame and curl permissions?

by nescivi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hiho,

On Sunday 29 June 2008 10:34:29 nescivi wrote:
> > 2008/6/29 Martin . <blindmanonacid@...>:
> > > Hi,
> > >
> > > I get this error when I try the MP3 class:
> > >
> > > Warning: bad ps syntax, perhaps a bogus '-'?

this warning is harmless.
take away the - in -xc in the command of ps, and it will not complain.

> > > See
> > > http://procps.sf.net/faq.html 

> > > sh: /usr/lib: Permission denied
> > > RESULT = 32256

it seems not the right command is executed...
sh /usr/lib ??


sincerely,
Marije

_______________________________________________
sc-users mailing list


info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: [linux] MP3 class - lame and curl permissions?

by Dan Stowell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/6/29 nescivi <nescivi@...>:

> Hiho,
>
> On Sunday 29 June 2008 10:34:29 nescivi wrote:
>> > 2008/6/29 Martin . <blindmanonacid@...>:
>> > > Hi,
>> > >
>> > > I get this error when I try the MP3 class:
>> > >
>> > > Warning: bad ps syntax, perhaps a bogus '-'?
>
> this warning is harmless.
> take away the - in -xc in the command of ps, and it will not complain.

I see, thanks

>> > > See
>> > > http://procps.sf.net/faq.html
>
>> > > sh: /usr/lib: Permission denied
>> > > RESULT = 32256
>
> it seems not the right command is executed...
> sh /usr/lib ??

Yes, I see. Martin, could you tell us what values you are using for
MP3.lamepath and MP3.curlpath?

Dan

_______________________________________________
sc-users mailing list


info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: [linux] MP3 class - lame and curl permissions?

by Martin . :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Yes, I see. Martin, could you tell us what values you are using for
> MP3.lamepath and MP3.curlpath?

My libcurl.so and libmp3lame.so are both in /usr/lib/, so that is the
value I set for both. I also tried including the filename in the path
but it would only take the directory.

cheers,
martin

_______________________________________________
sc-users mailing list


info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: [linux] MP3 class - lame and curl permissions?

by Dan Stowell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Aha!

It doesn't want the path to your library files, but to the executables
themselves. Most likely they're "/usr/bin/lame" and "/usr/bin/curl" so
try those values. On a command line, if you run `which lame` and
`which curl` it should tell you exactly the path to use - if the
`which` command gives no output then you don't have the executable
installed.

HTH
Dan

2008/6/29, Martin . <blindmanonacid@...>:

> > Yes, I see. Martin, could you tell us what values you are using for
>  > MP3.lamepath and MP3.curlpath?
>
>
> My libcurl.so and libmp3lame.so are both in /usr/lib/, so that is the
>  value I set for both. I also tried including the filename in the path
>  but it would only take the directory.
>
>  cheers,
>
> martin
>
>
>  _______________________________________________
>  sc-users mailing list
>
>
>  info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
>  archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
>  search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>


--
http://www.mcld.co.uk

_______________________________________________
sc-users mailing list


info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Re: [linux] MP3 class - lame and curl permissions?

by Martin . :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ah, it even says in the helpfile that it's the program and not the
library. Thanks and sorry for the fuss!

martin

On Sun, Jun 29, 2008 at 9:18 PM, Dan Stowell <danstowell@...> wrote:

> Aha!
>
> It doesn't want the path to your library files, but to the executables
> themselves. Most likely they're "/usr/bin/lame" and "/usr/bin/curl" so
> try those values. On a command line, if you run `which lame` and
> `which curl` it should tell you exactly the path to use - if the
> `which` command gives no output then you don't have the executable
> installed.
>
> HTH
> Dan
>
> 2008/6/29, Martin . <blindmanonacid@...>:
>> > Yes, I see. Martin, could you tell us what values you are using for
>>  > MP3.lamepath and MP3.curlpath?
>>
>>
>> My libcurl.so and libmp3lame.so are both in /usr/lib/, so that is the
>>  value I set for both. I also tried including the filename in the path
>>  but it would only take the directory.
>>
>>  cheers,
>>
>> martin
>>
>>
>>  _______________________________________________
>>  sc-users mailing list
>>
>>
>>  info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
>>  archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
>>  search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>>
>
>
> --
> http://www.mcld.co.uk
>
> _______________________________________________
> sc-users mailing list
>
>
> info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
> archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
> search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
>

_______________________________________________
sc-users mailing list


info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
LightInTheBox - Buy quality products at wholesale price