Page 2 of 3

Posted: Sat Feb 11, 2006 11:21 am
by joske
dracflamloc wrote:Quick guide for installing pb on ubuntu. I'll flesh it out tommorow:

Go into synaptic packager or use apt-get install (Menu->System->Add/Remove Programs)

Install with all thier dependancies:
libgtk2-dev
libgtk-dev
libsdl-dev
gcc (if not already installed)

Now download and extract Purebasic for linux into your home directory (~ or /home/<username>)

Browse to your home directory. Create a file called purebasic.sh

Open this file with gedit or kwrite,etc.

Add the following lines:

Code: Select all

#!/bin/bash
export PUREBASIC_HOME=~/purebasic
export PATH=$PUREBASIC_HOME/compilers:$PATH
~/purebasic/compilers/purebasic_gtk2
Save the file and right click it to view properties. Make it executable. Voila you are done!
Thanks for the guide! I'm a completely newbie with Linux. Yesterday I installed Ubuntu Linux 5.10, that works nice. But now I'm trying to install purebasic. I did follow your guide, but cant get it working.

This is what I did:
- Open Synaptic Packager (menu -> system -> Administration -> Synaptic Package Manager)
- Installed all packages with names starting with: libgtk*, libsdl*, gcc-4.0*
- Downloaded purebasic for linux. Unzipped it to the folder Home.
- Created the file purebasic.sh with the 4 lines of code you provided, and marked the property "executable" for this file.
(so when I open the folder home (/home/jos) I see the folders "Desktop", "purebasic", and the file "purebasic.sh")

But when I double click "purebasic.sh" and choose "run" nothing happens.
Any Idea what the problem is?

Jos

Posted: Sat Feb 11, 2006 12:34 pm
by Fred
can you try to run your script from a real 'bash' (shell window) ? The .sh probably trigger sh instead of bash.

Posted: Sat Feb 11, 2006 3:49 pm
by joske
I opened the Terminal and entered the content of the purebasic.sh file manually.
Terminal wrote:jos@ubuntu:~$ dir
Desktop purebasic purebasic.sh purebasic.sh~
jos@ubuntu:~$ #!/bin/bash
jos@ubuntu:~$ export PUREBASIC_HOME=~/purebasic
jos@ubuntu:~$ export PATH=$PUREBASIC_HOME/compilers:$PATH
jos@ubuntu:~$ ~/purebasic/compilers/purebasic_gtk2
/home/jos/purebasic/compilers/purebasic_gtk2: error while loading shared librari es: libstdc++.so.5: cannot open shared object file: No such file or directory
jos@ubuntu:~$
Therefore I added the package libstdc++5 (though libstdc++6 was already installed). Now purebasic works! Yeah! Also with opening with the file purebasic.sh.

Compiling of a program works ok, only the pb editor is messed up! Brackets and values are floating around everywhere in the text editor area!
how to solve this?

here a screenshot:
Image

Posted: Sat Feb 11, 2006 4:56 pm
by dracflamloc
Mine is like that too sadly. i was gonna file a bug report on it.
Run the one thats called "purebasic" and not the gtk2 one and it should work fine

Posted: Sat Feb 11, 2006 5:20 pm
by joske
:idea:

That solved the problem! thanks

Posted: Sat Feb 11, 2006 5:42 pm
by DarkDragon
My version of the purebasic IDE works great with coLinux and Knoppix 3.6

Posted: Sat Feb 11, 2006 11:34 pm
by Straker
dracflamloc wrote:Mine is like that too sadly. i was gonna file a bug report on it.
Run the one thats called "purebasic" and not the gtk2 one and it should work fine
I have the same issue on Ubuntu 5.10 Breezy. This did not occur in Hoary (5.04) before. Did it for anyone else?

Posted: Sun Feb 12, 2006 4:48 am
by Beach
Using Ubuntu 5.10 here and I see the same thing. I'm not using the IDE thought - I lost some source once when the IDE crashed. It might have been a one time thing but I have not been brave enough to try it again.

I'm sure its something with my PC... else everyone would be complaining.

Posted: Mon Feb 13, 2006 1:13 pm
by Trond
Why Ubuntu sucks:

1. Tons of UI flaws.
2. Network configuration doesn't work FOR ME
3. Two panels at the bottom of the screen exchanges places after a reboot FOR ME
4. Trying to drag the panels into position again causes an applet crash FOR ME
5. The applet crash hangs the "entire system" (no gui responding) FOR ME
So I Ctrl+Alt+Backspace into command prompt
6. > gdm
"Only root wants to run gdm" (No I know what I want!)
> startx (success!)

Now, I'm going to bug report this panel jam, so I try to configure the network.
7. Wireless network configuration doesn't work FOR ME (even when it "activates" I can't surf to anywhere, and YES I know for sure that I entered the correct data)

Now I'm sick of Ubuntu and wants another OS, so I "reboot". However it throws me back into the shell.
8. > reboot
"Only root can reboot" (Can I not reboot my own computer???)
9. > logout (wow, worked!)
9. log in as > root
enter password > *enters password*
incorrect login.

And I try again. And again. And I relogin as normal user, log out, and try to login as root again. And again. With the exact same password that worked a few seconds ago in the network configuration dialog. Also I checked something in the login settings to allow login as root.

So I use the power button.

The previous time I installed Ubuntu I had much of the same troubles. And then I tried to enable mp3 support. I followed the instructions from the Wiki exactly and no, it wouldn't play mp3s.

Edit: Not to mention the straight out bugs such as buttons not doing anything and keyboard accellerators not doing anything. And the installer asking me where to install GRUB after I just selected that I didn't want to install GRUB.

Posted: Mon Feb 13, 2006 2:43 pm
by joske
I think that you mean:
Why Ubuntu sucks FOR ME
:wink:

Posted: Mon Feb 13, 2006 4:18 pm
by Trond
No, it sucks because it doesn't work everywhere.

Posted: Mon Feb 13, 2006 5:06 pm
by dracflamloc
Windows doesnt work everywhere either ;)

I'd actually argue linux works in MORE places since it runs on different types of processors and environments. But Ubuntu has always worked great for me.

Posted: Mon Feb 13, 2006 5:18 pm
by Trond
I never said Windows worked. I tried Linux for a reason.

Posted: Mon Feb 13, 2006 5:26 pm
by Beach
I like to use Knoppix (bootable CD) to test the hardware on a PC that is acting up. This is a good way to confirm you have either a buggy OS or a bad peice of hardware. I recently isolated a hardware issue this way.

Ubuntu has always been solid for me. Actually, all Debian and Debian based distros have worked well for me in the past - unless you get the apt-get sources all screwed up.

Posted: Mon Feb 13, 2006 7:34 pm
by LuCiFeR[SD]
hehehe, Trond... the "root" issue *IS* quite amusing. that is what the "sudo" command is for :). Although, it is simple enough to fix the root password, you just need to change it :) I have no idea what it is set to in ubuntu... I just change it from "system/administration/users and groups"

just select the show all users and groups checkbox and double click "root" and set the password by hand.

Or you could do it from cli the same as you would do anything else in linux :).

I must admit, I've had nothing but trouble with PB under ubuntu though... I can't get 3D to work at all and the GUI I suffer with the same problem as all the rest of the breezy users.