Page 1 of 1

Install Problems

Posted: Wed Jun 03, 2009 9:50 pm
by gedumer
I just purchased PureBasic and installed it on WindowsXP and Ubuntu 8.04LT Linux. WinXP is working fine. Linux is another issue however.

First of all, I'm VERY new to Linux so just installing packages is a challenge for me. The 1st problem I'm having is getting ./checkinstall.sh to work. Everytime I run it, I get an error saying "permission denied". I'm logged on as the administrater, so what do I need to do. I know I'm missing some of the libs I need to run everything, but I won't know which until I can run ./checkinstall.sh.

I have installed a number of the libs based on some of the Forum posts, but I think I still need more.

Thanks for any help you can give.

Posted: Wed Jun 03, 2009 10:03 pm
by ts-soft
Set the executable flag in the properties of checkinstall.sh

Posted: Wed Jun 03, 2009 10:09 pm
by gedumer
Thanks... that worked.

Here's the result:

Code: Select all

gary@gary-desktop:~/purebasic$ ./checkinstall.sh
Package libgnome-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgnome-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgnome-2.0' found
libgnome devel package need to be installed to use PureBasic
I'm not sure what to do now. How do I set the " PKG_CONFIG_PATH environment variable"?

Posted: Wed Jun 03, 2009 10:16 pm
by ts-soft
There is nothing to set, only install the right devel package libgnome2.0

Posted: Thu Jun 04, 2009 2:15 am
by gedumer
I do have the package on my system according to a search of my hard drive so could it be the environment variable after all? If so, how would I set it?

Posted: Thu Jun 04, 2009 2:38 am
by AND51
It was a challenge on my Linux openSUSE 10.3, too.
There I set the environmentvariable as the following:

Code: Select all

export PUREBASIC_HOME=/folder1/folder2/purebasic
export PATH=$PUREBASIC_HOME/compilers:$PATH
Using these 2 commands in a terminal session keeps these environment variables valid as long as you are logged in. They expire on logout. Next time you log in, you have to do this process again.
Unless you write this setting to your Linux-autostart-file (don't remember the name currently; there is a file being executed everytime you log in, this is the file I mean).

If you want to call the compiler from your program (e. g. with RunProgram()) in order to compile source codes, it's enough to set the working directory for the compiler to "/path/purebasic/compilers".

Hope I could help.




// edit
bembulak published a very good tutorial on how to install Linux on Ubuntu here:
http://www.purebasic.fr/english/viewtop ... +purebasic (PDF file)

Posted: Thu Jun 04, 2009 3:48 am
by lexvictory
make sure pkg-config is installed, otherwise - as mentioned before - make sure you have the packages with the "-dev" ending