Page 1 of 1

Installing for Dummies

Posted: Mon Aug 14, 2006 4:51 pm
by PB&J Lover
I've installed Ubuntu Linux on my laptop and I've read the links for installing PureBasic, but I don't know enough about Linux to make it all work. Can someone post the Dummies version?

I have my files in /home/myname/PureBasic

How can I get PB to come up form an icon on the desktop.

Thanks. so much. :D

Posted: Mon Aug 14, 2006 5:28 pm
by Trond
Make a file called purebasic.sh in the /home/name/Desktop folder. Put this into the file:

Code: Select all

export PUREBASIC_HOME=~/PureBasic
export PATH=$PUREBASIC_HOME/compilers:$PATH
$PUREBASIC_HOME/compilers/purebasic

Posted: Tue Aug 15, 2006 12:40 am
by PB&J Lover
This doesn't work. I click on it and it asks me if I want to run it in terminal or just run it and either way, nothing happens.

Ubuntu doesn't have you run just off of the /home, each user has a /home/name directory.

So what do I do? :(

Posted: Tue Aug 15, 2006 1:03 am
by ts-soft
set the executable flag for the script and hide the script (rename to ".purebasic.sh")

right click on desktop, new programm and set the name to purebasic or
run program: purebasic

Posted: Tue Aug 15, 2006 1:11 am
by PB&J Lover
That didn't work either (and I'm not sure what all it means).

This can't be this hard. :(

edit: the path is: /home/dave/PureBasic

The folder is just like that. How do I get it to run?

I see what you mean. Create a Launcher (please be more specific). I did that but changing the name of the .sh file did not hide it.

Posted: Tue Aug 15, 2006 1:21 am
by dracflamloc
/home/dave is the same as ~ in linux

Posted: Tue Aug 15, 2006 1:25 am
by PB&J Lover
Ok, then here is the new .sh file.

Code: Select all

export PUREBASIC_HOME=~/PureBasic
export PATH=$PUREBASIC_HOME/compilers:$PATH
$PUREBASIC_HOME/compilers/purebasic
Still doesn't work.

Edit: This is the error I get from the command line entries:
/home/dave/PureBasic/compilers/purebasic: error while loading shared libraries: libgtk-1.2.so.0: cannot open shared object file: No such file or director

Posted: Tue Aug 15, 2006 1:46 am
by Straker
Go into your synaptic package manager System ->Adminstration->Synaptic Package Manager and search for libgtk*, then check the boxes to install the dev packages (and the binaries if they are not included). These are your GTK libraries (source code) and don't appear to be installed yet.

Posted: Tue Aug 15, 2006 1:59 am
by PB&J Lover
I'll give it a try. I've only had Linux (Ubuntu) installed for 3 days now. Just trying to get PB working. I know very little about Linux.

Thanks. :shock:

Posted: Tue Aug 15, 2006 2:21 am
by PB&J Lover
Most of them are installed. Which ones need to be? Did you have to install them?

Posted: Tue Aug 15, 2006 2:47 am
by PB&J Lover
I installed them and got it working, but I also got this error:
Gtk-WARNING **: Unable to locate loadable module in module_path: "libindustrial. so",
What does it mean? :shock:

Posted: Tue Aug 15, 2006 5:48 pm
by Straker
It means that GTK is looking for the Industrial theme or something required by it. The libindustrial.so is a "DLL" so to speak (.so means shared object, the name for shared libraries in Linux), again just go to Synaptic Manager and search for libind* and see if it is checked/installed, otherwise install it. You may also have to include the "-dev" packages (usually source code), in order to compile.

Posted: Tue Aug 15, 2006 6:53 pm
by freak
> Gtk-WARNING **: Unable to locate loadable module in module_path: "libindustrial. so"

It is just a theme library. I get this myself when compiling gtk1 programs, but it all works as expected.

Btw, with PB4 for linux, this will hopefully get a bit easier.
The IDE will be able to work without any environment variables set, so this will only
be needed for commandline compiling.

I am also thinking of including a test program to easily show which packages are missing to
run PureBasic.

Posted: Tue Aug 15, 2006 9:12 pm
by garretthylltun
It's not the theme itself, it's the theme engine that's in question.

There are several theme engines for gnome, and themes that are
specific to these theme engines. And if I remember correctly, there's
about 3 or 4 theme engines for Gnome.

Likely, the theme is installed, but not the theme engine.

-Garrett

Posted: Wed Aug 16, 2006 1:58 pm
by PB&J Lover
Thanks. It finally is running. Can't wait for PB4 in Linux.

With these new distros I think the demand for PB in Linux will go up. I've been waiting since Linux came out for a distrobution that I could just load without having to go on a driver hunt. This is my first time loading Linux on a Windows computer (dual partition).

Thanks. :D