Page 1 of 1

SUSE 9.0 and PB3.81 Problem

Posted: Tue Jan 13, 2004 9:02 am
by PWS32
Hi,
im have install PB3.81 as SU by instruction in the install file
the im type pbcompiler, im think this is ok !

Code: Select all

linux:~ # pbcompiler

******************************************
PureBasic Linux x86 v3.81
******************************************

A filename must be specified.
linux:~ #
after this im type :

Code: Select all

linux:~ # pbcompiler Window.pb

******************************************
PureBasic Linux x86 v3.81
******************************************

Loading external modules...
Starting compilation...
40 lines processed.
Creating the executable.
sh: line 1: gtk-config: command not found
sh: line 1: gtk-config: command not found
Requester.a(MessageRequester.o)(.text+0xd): In function `PB_MessageRequester2':
: undefined reference to `gtk_dialog_new'
im think pbcompiler find not gtk-config !

gtk-config is present on this system, im have testet with this command:

Code: Select all

linux:~ # locate gtk-config
/opt/gnome/bin/gtk-config
/opt/gnome/man/man1/gtk-config.1.gz
linux:~ #
which is now wrong ?

im have another question by the install file:

Code: Select all

NOTE: you can set the $PUREBASIC_HOME environment variable to
  your installation path if you don't want to put the purebasic
  drawer in /usr/share.
wath im must doing here ?

Best Regards,
Peter

Posted: Tue Jan 13, 2004 1:01 pm
by zomtex2003
Hi PWS32,

I think you are using Gnome as desktop envirenment, right? instad of KDE2 btw KDE3. The path to the gtk-config is in your installation at this one:

Code: Select all

/opt/gnome/bin/gtk-config
Could it be, that the pbcompiler search for the gtk-config file in the KDE diretory like this:

Code: Select all

/opt/kde2/bin/gtk-config
imho I think this could be the cause of the error. You should check it out.

Greez

Michael from Germany

Posted: Wed Jan 14, 2004 1:14 am
by PWS32
Hi,

no,im using not the Gnome desktop envirenment

Posted: Wed Jan 14, 2004 1:54 am
by Fred
you will probably have to install the gtk1.2-devel package.

Posted: Thu Jan 15, 2004 2:07 am
by PWS32
Hi,

yes im have this install and have the same problems,
im have delete the suse 9.0 and have install suse 8.0
now works pb fine !
the last problem wath im have : im cant find my programm after compile
where can I find it ?

Best Regards,
Peter

Posted: Thu Jan 15, 2004 2:43 pm
by zomtex2003
you should try to compile your program like this:

Code: Select all

pbcompiler myprogram.pb -e myprogram
the outputfile should be in the same directory as the sourcefile

Greez

Michael

Posted: Thu Jan 15, 2004 10:44 pm
by PWS32
thx this works fine !
another question :
why must start my program by type this ./myprogram and not by type myprogram ?

Posted: Thu Jan 15, 2004 11:14 pm
by Paul
Because you are using Linux and not Window ;)

Posted: Fri Jan 16, 2004 1:03 am
by Christian
@PW32:

I am not sure, but in my opinion the "./" command specifies that the following file is an executeable!

best regards,
christian

Posted: Fri Jan 16, 2004 1:06 am
by TronDoc
my understanding is this:
if an executable is not "on" the Linux equivalent of a "path",
you have to specify the path to execute it.. ..I just haven't
figured out how to get/set the path under Linux -- Yet!
Joe

you can do this:
/home/SomeUser/myPROGramming/PureBASIC/REQ.EXE
or just:
./REQ.EXE

the dot "." works as "current" directory so when you do ./REQ.EXE
you are just prepending the current directory and end up with the full path.

Posted: Wed Jan 21, 2004 10:53 am
by gkaizer
to add a directory to the path in linux do as follows

PATH=$PATH:/path_to_directory
export PATH

substituting path_to_directory with the full qualified path of the directory you want to add

cheers

Posted: Wed Jan 21, 2004 12:41 pm
by TronDoc
thanks!
I'll try it as soon as I get home.
Joe