[Gambas-user] understanding and learning gambas

Benoit Minisini gambas at ...1...
Wed Sep 29 11:31:04 CEST 2004


On Tuesday 28 September 2004 17:27, Primorec wrote:
> On Tue, 28 Sep 2004 11:24:48 +0200, Benoit Minisini
>
> <gambas at ...1...> wrote:
> > > P.S:  Is there a reason to have "gambas" statically linked ?
> > > gambas = statically linked
> > > gbx,gbc, gba, gbi = dynamically linked
> >
> > No light, but gambas is not "statically linked", as gambas is not an
> > executable, but a script file that calls /usr/bin/gbx. Type 'khexedit
> > gambas' to see the first line "#!/usr/bin/gbx".
>
> ooops   ...:)))   you are right...  I did not think about that...
>
> Yes , head /opt/gambas/bin/gambas shows
>
> #!/usr/bin/gbx -x
>
> ~ħ85LF# Gambas Project File 1.0
> Project=gambas
> Title=Gambas
> ===========================================
>
> Now, I understand why I am getting "gambas: Command not found".
>
> This is typical return when a script file ( for example tcsh file)
> does not point to the correct location of the "tcsh".
>
> So, I've replaced "#!/usr/bin/gbx -x"  with "#!/usr/local/bin/gbx -x".
>
> Now, I do not get anymore "command not found" message..  but  a core dump.
> Core dump is attached to this e-mail.

Don't modify the file by hand, or everything will crash.

>
> [igor at ...40... ~]$ gambas
> ERROR: #51: Bad archive: No such file or directory

It tells you!

> Segmentation fault (core dumped)
>
> It seems to me that "gambas" is not reloctable.

It is, but then you must make a symbolic link in /usr/bin.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list