Page 1 of 1
what is the path of PUREBASIC_HOME ?
Posted: Fri Aug 14, 2020 2:06 pm
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?
Re: what is the path of PUREBASIC_HOME ?
Posted: Fri Aug 14, 2020 8:33 pm
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
Re: what is the path of PUREBASIC_HOME ?
Posted: Sun Nov 28, 2021 5:04 am
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)
Re: what is the path of PUREBASIC_HOME ?
Posted: Sun Nov 28, 2021 9:24 am
by Marc56us
Deleted (topic error: Mac OSX)
Re: what is the path of PUREBASIC_HOME ?
Posted: Mon Nov 29, 2021 4:59 am
by kenmo
Marc56us, is your advice for Linux installation? This was a MacOS thread, but similar error and solution.