Installing PureBasic into PCLINUXOS?

Linux specific forum
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4792
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Installing PureBasic into PCLINUXOS?

Post by Fangbeast »

Has anyone had a go at installing PureBasic into PCLINUXOS? (Built on the Mandriva platform).

Or does anyone have an easy tutorial to install pb into linux in general that even I can follow? (grin).

I am going to take the plunge (gulp!)
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 576
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

I've installed PB on MDV 10.1, 2006, 2007 as well as on
Sam Linux 2006 and 2007 - Sam is a PCLinuxOS dervirat.

So it's no problem.

I recomend the following way, since it's the best for me:

a) before installing PB see, if you have access to online Repos. Then open the software-management from the "controll center".

b) install sdldevel 1.2, gtk2, gtk2-devel, libstdc++6. (If you check these, maybe some others are reqired, but the package manager should solve those dependencies easily)

c) if you don't have libstdc++6.so in the Repos, make a search at "http://www.rpmseek.com/index.html", or use a Mandriva repository. They fit pretty well most of the time.

d) install all the packages mentioned above.

e) Open a Terminal and go to your home-dir.

f) type: mkdir bin

g) got to the directory, where you've downloaded purebasic. e.g. in download --> cd download

h) extract the archive with "tar -xzf purebasic_xxxx.tgz"

i) you should have a directory calle "purebasic" now.

j) move the directory into the "bin" directory in your HOME, not in /bin!! If you are in "download", try: "mv purebasic ../bin/"

k) the complete path to your pb-installation is now: /home/$YOUR_USERNAME/bin/purebasic

l) go to your home directory again: "cd ~"

m) open the .bash_rc using your favorite Editor, e.g: "vim .bash_rc"

n) add the following line: "export PATH=$PATH:/home/$YOUR_USERNAME/bin/purebasic/compilers"

o) save document and exit the editor.

p) close the terminal and open a new one (when you open a new one, the .bash_rc will be "reloaded". This makes sure, that the new terminal has the path to PB in the enviroment-variable.

q) type "purebasic" - the IDE should open up.

r) now you can test the examples from the examples dir. I always try the "gadgetfull.pb" and the "sprite.pb" example. So I know that the "GTK-Lib" for the "gadgetfull.pb" is correctly and fully installed (for GUI-Porgrams) and the SDL stuff (for Games) ist also there!

s) HAVE FUN with PB!


Hope, this helps.
cheers,

bembulak
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4792
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Woohoo!!

Post by Fangbeast »

Mate, you are a dead set legend. Been doing pb under windows for 6 years and some people asked me if my stuff was available under Linux but was afraid to try because of lib dependancy hell (reminds me of dll hell under windows).

Oh boy, trying to get used to paths and going to have to 'dumb' down my stuff because a lot of my win stuff uses API's that I don't know how to replace in linux.

Hmm, looks like some requests to Fred need to be done.

Okay, will play tomorrow when my bandwidth comes back.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 576
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

you are a dead set legend
What's that??
Hmm, looks like some requests to Fred need to be done.
Why? I told you everything you need.
Everything else is Linux-base-knowledge, no issue with PB.

Last thing I could do is make some screenshots + tutorial, or reinstall a MDV/PClinuxOS/Sam-Linux, since the advises I gave are written "freestyle" (outta my memories on a W32-box).
cheers,

bembulak
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4792
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

A legend (in your case) is a genius who got that way without being dead. Normally, you have to be dead to be a legend. We have srod, netmaestro and a few other legends who are alive. (ROFL)

Hmm, looks like some requests to Fred need to be done.
Why? I told you everything you need. Everything else is Linux-base-knowledge, no issue with PB.
There is method in my madness. If I figure out all the steps and they work for my linux, then I am going to ask fred to package up the linux demo as an rpm and then ask the pclos admins to include it in the "nonfree" repository so pb can reach a wider audience.

That's what I meant.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 576
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

A legend (in your case) is a genius who got that way without being dead
:D
Thanks, but walker deserves that more that I will ever do.
There is method in my madness. If I figure out all the steps and they work for my linux, then I am going to ask fred to package up the linux demo as an rpm and then ask the pclos admins to include it in the "nonfree" repository so pb can reach a wider audience.
Aha, sorry - I missunderstood that.
But you're right - for example: a dummy-package would be good! (An installation without the acutal PB, but with the dependencies). Makes sense.
:P
cheers,

bembulak
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Where can I find the file .bash_rc?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 576
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Post by bembulak »

It's a hidden file in your home dir.

All files and dirs, that start with a . are hidden in Unix. You can:
use your filemanager and select "view / view all/hidden files" or use this command in the bash:
ls -a # a is for "all".

If you username/userhomedirectoryname is "geotrail" for example, then the file should be placed here (normally):
/home/geotrail/.bashrc

(It's not .bash_rc I see now, it's .bashrc - sorry).

But you can use this tutorial:
http://www.purebasic.fr/english/viewtopic.php?t=26957

The way of editing the .bashrc is the same on every linux. Only Packagemanager is different.
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Thanks :)
Downloading the PDF file now :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Post Reply