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.