Installing for Dummies

Linux specific forum
PB&J Lover
Enthusiast
Enthusiast
Posts: 212
Joined: Fri Apr 22, 2005 2:07 pm
Location: U.S.A.
Contact:

Installing for Dummies

Post 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
-- DB

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.

Albert Einstein
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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
PB&J Lover
Enthusiast
Enthusiast
Posts: 212
Joined: Fri Apr 22, 2005 2:07 pm
Location: U.S.A.
Contact:

Post 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? :(
-- DB

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.

Albert Einstein
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
PB&J Lover
Enthusiast
Enthusiast
Posts: 212
Joined: Fri Apr 22, 2005 2:07 pm
Location: U.S.A.
Contact:

Post 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.
Last edited by PB&J Lover on Tue Aug 15, 2006 1:21 am, edited 1 time in total.
-- DB

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.

Albert Einstein
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

/home/dave is the same as ~ in linux
PB&J Lover
Enthusiast
Enthusiast
Posts: 212
Joined: Fri Apr 22, 2005 2:07 pm
Location: U.S.A.
Contact:

Post 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
-- DB

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.

Albert Einstein
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post 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.
Image Image
PB&J Lover
Enthusiast
Enthusiast
Posts: 212
Joined: Fri Apr 22, 2005 2:07 pm
Location: U.S.A.
Contact:

Post 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:
-- DB

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.

Albert Einstein
PB&J Lover
Enthusiast
Enthusiast
Posts: 212
Joined: Fri Apr 22, 2005 2:07 pm
Location: U.S.A.
Contact:

Post by PB&J Lover »

Most of them are installed. Which ones need to be? Did you have to install them?
-- DB

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.

Albert Einstein
PB&J Lover
Enthusiast
Enthusiast
Posts: 212
Joined: Fri Apr 22, 2005 2:07 pm
Location: U.S.A.
Contact:

Post 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:
-- DB

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.

Albert Einstein
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post 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.
Image Image
freak
PureBasic Team
PureBasic Team
Posts: 5944
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post 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.
quidquid Latine dictum sit altum videtur
garretthylltun
Enthusiast
Enthusiast
Posts: 346
Joined: Wed Oct 26, 2005 2:46 am
Contact:

Post 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
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
· Necroprogramming FTW! - "Wait.. Is necroprogramming legal?"
· http://www.freewarehome.com/ <-- Freeware listings since 1996
PB&J Lover
Enthusiast
Enthusiast
Posts: 212
Joined: Fri Apr 22, 2005 2:07 pm
Location: U.S.A.
Contact:

Post 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
-- DB

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage — to move in the opposite direction.

Albert Einstein
Post Reply