Installed PB... Now what?

Linux specific forum
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Installed PB... Now what?

Post by Inf0Byt3 »

I installed LinuxMepis (i think it's quite easy to work with) BUT (there's allways a 'but') I don't manage to compile anything :(. The gtk1 ide is working perfectly but when I try to compile the code i get this:
a) Ide closes immediately
b) In the error listbox in the IDE I get 'unknown location /root/...pbcompiler'
c) Waiting for the executable to start.... (FOREVER)
I installed PB exactly like in the INSTALL file.
What should I do? Two screenies:

<Removed the screenies>

Thanks.
Last edited by Inf0Byt3 on Tue Apr 18, 2006 2:09 pm, edited 1 time in total.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
LuCiFeR[SD]
666
666
Posts: 1033
Joined: Mon Sep 01, 2003 2:33 pm

Post by LuCiFeR[SD] »

Hey, we keep bumping into each other don't we LOL.

My advice would be to follow freds "not recomended installation method"

cause unfortunatey it is the most reliable method imho.
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

Looks like its not finding your compilers directory. Copy the following code into a text editor and save it as "pb.sh" in your home directory. Then set the permissions on it to execute.

Code: Select all

export PUREBASIC_HOME=/root/Desktop/PureBasic3
export PATH=$PUREBASIC_HOME/compilers:$PATH
purebasic
Then use this pb.sh shell script as your launcher for PB. If the GTK2 Editor works for you, you can replace the last line of the script with "purebasic_gtk2".

Good luck.
Image Image
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 »

Straker Offtopic I know but, can you still buy the serious "ufo" that your avatar is from? I only ever saw 2 episodes so many years ago and liked it.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Straker: When I type pbcompiler in any terminal it is found, but neither of the IDEs can find it.
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Do you launch the IDE from the terminal as well ? As long your PUREBASIC_HOME envvar is set it should be ok. type: echo $ PUREBASIC_HOME to see if it's set (and it must be set with the 'export' before). You have to take a care of letter case differences on Linux as well.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Wow, it finds the compiler when I launch it from the terminal. Why is this?
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

The envvars are related to a terminal where you define them (for example if you define them in the .bashrc, it's only available for the 'bash' based terminals), that's why it's important to launch the compiler either from the terminal or from a shell script, like Straker did.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Can't I make them "global"?
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

You can may be try this (not tested): http://linux.derkeiler.com/Mailing-List ... /0072.html
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Thank you for the quick answers! I was sleeping, I posted this at 4:30 AM local time :D. I'll try the methods now.
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
freak
PureBasic Team
PureBasic Team
Posts: 5946
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

You should be able to do a little script with just the export statement and then the call to open the IDE.
This should work.
quidquid Latine dictum sit altum videtur
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

Maybe Fred should deliver this script with PB for Linux and mention it in the install file I think Strakers script is right used something like that as well but now I somehow did manage to get it working withoout don't know what^^
freak
PureBasic Team
PureBasic Team
Posts: 5946
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

We could also add a Preference option to set the path. The IDE can then set the variable for the
compiler before starting it.
Then you would only need to set the variables for console compiling.

I will see what can be done when i work on the linux ide again.
quidquid Latine dictum sit altum videtur
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Thanks Straker! It worked perfectly. This is a must in the Linux Package. Maybe Fred can make a utility in PB. Just choose the path and it will generate a .sh file, something like a launcher...
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Post Reply