Page 1 of 1

Just installed: Demo compilation error

Posted: Thu Feb 04, 2016 9:41 pm
by agilefalcon
Hello,
Just installed this application and tried to run the demo programs. The compiler errors out with a message that says to use the "rerun as root using sudo" command to run as an admin. How do I that? Seems strange that the program would ask that?

Chris

Re: Just installed: Demo compilation error

Posted: Thu Feb 04, 2016 10:02 pm
by infratec
Hi,

a bit less informations.

Which PB version?
Which OS?
Which demo program?

I guess you installed the linux version.
If so, did you run the check install script?

Bernd

Re: Just installed: Demo compilation error

Posted: Thu Feb 04, 2016 11:33 pm
by falsam
infratec wrote:Which OS?
agilefalcon wrote:"rerun as root using sudo"
I think it's Linux :wink:

Re: Just installed: Demo compilation error

Posted: Fri Feb 05, 2016 2:57 am
by TI-994A
agilefalcon wrote:...compiler errors out with a message that says to use the "rerun as root using sudo" command to run as an admin.
Hello, and welcome to the PureBasic forum. :D

Assuming that you are indeed running on Linux, the PureBasic installation requires a few extra steps. This PDF tutorial would be the best place to start:

> Install PureBasic on Linux

Re: Just installed: Demo compilation error

Posted: Fri Feb 05, 2016 12:56 pm
by cptdark
agilefalcon wrote:Hello,
Just installed this application and tried to run the demo programs. The compiler errors out with a message that says to use the "rerun as root using sudo" command to run as an admin. How do I that? Seems strange that the program would ask that?

Chris
Where did you install PureBasic? Outside /home ? In this case you have to start the PureBasic IDE itself as root, since running a programm from the IDE (I think) creates the assembla/executable within purebasics folder.

I've just extracted the archive into my home directory. It's imho the better way.

regards

Re: Just installed: Demo compilation error

Posted: Fri Feb 05, 2016 5:40 pm
by agilefalcon
Wow - thanks for the responses. Actually, I'm on a Mac. I just extracted Pure Basic to my desktop. I'll locate the folder elsewhere and see if that works.

Chris.

Re: Just installed: Demo compilation error

Posted: Fri Feb 05, 2016 5:57 pm
by infratec
Mac OSX 10.11:

I copied only the dmg on the desktop.
2 double clicks and it works out of the box.

No problem here.

But I still doesn't know which example you tested.
So I can not try to reproduse it.

Bernd

Re: Just installed: Demo compilation error

Posted: Sat Feb 06, 2016 8:57 pm
by agilefalcon
Okay, I moved the PB folder into my Applications folder.
I am on an Apple iMac, OS X El Capitan, 10.11.3

Here is what version of PB I have:
PureBasic 5.41 LTS (MacOS X - x64)
Feel the ..Pure.. Power

I still get the same error message:
"PureBasic - Linker error
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo."

No matter what I try - the compilation starts and then this error pops up.

I do have Xcode on my machine in order to program in Swift. I'll see if there is something I can spot in the Xcode environment.

Chris

Re: Just installed: Demo compilation error

Posted: Sat Feb 06, 2016 9:24 pm
by infratec
Hi,

yes, you have a probblem with your XCode.
But since I'm only a 'sometimes' OSX use, I can not remember what was to do.

Maybe one of our OSX gurus can tell you the answer.

Better write OSX in your headline, than they look inside this thread :wink:

Bernd

Re: Just installed: Demo compilation error

Posted: Sat Feb 06, 2016 9:28 pm
by agilefalcon
Found the problem.
I had recently downloaded and installed the newest version of Apple's Xcode.
I had not used this program. When I started Xcode, it had me agree to the license. Xcode then started normally.

When I did that, PureBasic would now run the sample/demo programs.

Therefore, there is some dependency between Xcode and PureBasic.

Chris

Re: Just installed: Demo compilation error

Posted: Sat Feb 06, 2016 10:06 pm
by infratec
Of course, there is.
PB uses XCode.
But that is also written somewhere.

But now you can start in the world of PB programming :mrgreen:

Bernd