what is the path of PUREBASIC_HOME ?

Mac OSX specific forum
Wolfram
Enthusiast
Enthusiast
Posts: 567
Joined: Thu May 30, 2013 4:39 pm

what is the path of PUREBASIC_HOME ?

Post by Wolfram »

If I run the command line compiler I get the error "Can't load OS libraries, please re-install PureBasic."

What is the right path off the PUREBASIC_HOME variable?
macOS Catalina 10.15.7
Wolfram
Enthusiast
Enthusiast
Posts: 567
Joined: Thu May 30, 2013 4:39 pm

Re: what is the path of PUREBASIC_HOME ?

Post by Wolfram »

I found ou,t since sierra, you must define the $PUREBASIC_HOME in a startup.plist file and put it into the ~/LaunchAgents

Alternative you can defined in the same line as you open the pbcompiler

Code: Select all

PUREBASIC_HOME=/Applications/PB/PureBasic_546_x64.app/Contents/Resources pbcompiler -e myTestApp.app -d -o PB_Editor_CreateExecutable=1 Test_PB.pb
macOS Catalina 10.15.7
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: what is the path of PUREBASIC_HOME ?

Post by kenmo »

Thanks for this helpful tip, I ran into this problem tonight!

(If you're calling pbcompiler via RunProgram(), just prepare it by SetEnvironmentVariable("PUREBASIC_HOME", ...) with the pbcompiler's corresponding /Resources/ path)
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: what is the path of PUREBASIC_HOME ?

Post by Marc56us »

Deleted (topic error: Mac OSX) :oops: :wink:
Last edited by Marc56us on Mon Nov 29, 2021 7:07 am, edited 1 time in total.
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: what is the path of PUREBASIC_HOME ?

Post by kenmo »

Marc56us, is your advice for Linux installation? This was a MacOS thread, but similar error and solution.
Post Reply