[Gambas-user] using gambas as a scripting language ?

Arief Bayu Purwanto ariefbayu at ...626...
Mon Jun 2 19:07:36 CEST 2008


On 6/2/08, abom at ...1919... <abom at ...1919...> wrote:
>
> then saving it as file.gambas , runnign it ./file.gambas
>
> but it gives me :
>
>
> root at ...1920...:/home/abom# chmod +x ./gb.gambas
> root at ...1920...:/home/abom# ./gb.gambas
> /usr/bin/env: gbs2: No such file or director
>
>
> any help ^^ ?!


Try finding where gbs2 is:
$whereis gbs2
in my box there isn't any gbs2 because I only use gambas3 devel, so whereis
gbs3 return:
silent at ...1792...:/tmp$ whereis gbs3
gbs3: /usr/local/bin/gbs3 /usr/local/bin/gbs3.gambas

and change your env information based on that:

#!/usr/bin/env /usr/local/bin/gbs3 << change it to where your gbs2 is.

someone have a better answer as I'm not really good in shell scripting?




-- 
Arief Bayu Purwanto
About : http://about.freelancer.web.id/
Blog : http://bayu.freelancer.web.id/



More information about the User mailing list