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!)
Installing PureBasic into PCLINUXOS?
- Fangbeast
- PureBasic Protozoa

- Posts: 4792
- Joined: Fri Apr 25, 2003 3:08 pm
- Location: Not Sydney!!! (Bad water, no goats)
Installing PureBasic into PCLINUXOS?
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
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.
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
bembulak
- Fangbeast
- PureBasic Protozoa

- Posts: 4792
- Joined: Fri Apr 25, 2003 3:08 pm
- Location: Not Sydney!!! (Bad water, no goats)
Woohoo!!
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.
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
What's that??you are a dead set legend
Why? I told you everything you need.Hmm, looks like some requests to Fred need to be done.
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
bembulak
- Fangbeast
- PureBasic Protozoa

- Posts: 4792
- Joined: Fri Apr 25, 2003 3:08 pm
- Location: Not Sydney!!! (Bad water, no goats)
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.
That's what I meant.
Hmm, looks like some requests to Fred need to be done.
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.Why? I told you everything you need. Everything else is Linux-base-knowledge, no issue with PB.
That's what I meant.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
A legend (in your case) is a genius who got that way without being dead
Thanks, but walker deserves that more that I will ever do.
Aha, sorry - I missunderstood that.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.
But you're right - for example: a dummy-package would be good! (An installation without the acutal PB, but with the dependencies). Makes sense.
cheers,
bembulak
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.
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.
