Just installed: Demo compilation error

Just starting out? Need help? Post your questions and find answers here.
agilefalcon
New User
New User
Posts: 7
Joined: Thu Feb 04, 2016 9:37 pm

Just installed: Demo compilation error

Post 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
infratec
Always Here
Always Here
Posts: 7794
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Just installed: Demo compilation error

Post 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
User avatar
falsam
Enthusiast
Enthusiast
Posts: 648
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: Just installed: Demo compilation error

Post by falsam »

infratec wrote:Which OS?
agilefalcon wrote:"rerun as root using sudo"
I think it's Linux :wink:

➽ Windows 11 64-bit - PB 6.21 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect 🤪
User avatar
TI-994A
Addict
Addict
Posts: 2791
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Just installed: Demo compilation error

Post 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
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
cptdark

Re: Just installed: Demo compilation error

Post 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
agilefalcon
New User
New User
Posts: 7
Joined: Thu Feb 04, 2016 9:37 pm

Re: Just installed: Demo compilation error

Post 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.
infratec
Always Here
Always Here
Posts: 7794
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Just installed: Demo compilation error

Post 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
agilefalcon
New User
New User
Posts: 7
Joined: Thu Feb 04, 2016 9:37 pm

Re: Just installed: Demo compilation error

Post 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
infratec
Always Here
Always Here
Posts: 7794
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Just installed: Demo compilation error

Post 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
agilefalcon
New User
New User
Posts: 7
Joined: Thu Feb 04, 2016 9:37 pm

Re: Just installed: Demo compilation error

Post 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
infratec
Always Here
Always Here
Posts: 7794
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Just installed: Demo compilation error

Post 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
Post Reply