Recent

Author Topic: First time installation - not working  (Read 5616 times)

unistereo

  • New member
  • *
  • Posts: 9
First time installation - not working
« on: August 27, 2015, 09:13:47 pm »
Hi,

Lazarus got me curious so I thought why not install it on my Mac to see how it works ?

I installed it using the procedure described at getlazarus.org (using curl, setup.sh, etc...).
Installation went smoothly (I already had XCode and the command line tools installed).

I start Lazarus -fine-, go to Run menu and click "Run" to execute the project. 

I get ' Write Error: Unable to write file "/Users/me/tmp/unit1.pas" '

What did I miss ?

Thanks in advance for your help,

Config:
MacOS X 10.9
fpc 3.0.1
Lazarus 1.4RC1

BitBangerUSA

  • Full Member
  • ***
  • Posts: 183
Re: First time installation - not working
« Reply #1 on: August 27, 2015, 09:21:46 pm »
don't know or use a Mac - maybe you want Lazarus 1.42 ???

also see http://forum.lazarus.freepascal.org/index.php/topic,29476.msg186247/topicseen.html#new
« Last Edit: August 27, 2015, 09:27:51 pm by BitBangerUSA »
Lazarus Ver 2.2.6 FPC Ver 3.2.2
Windows 10 Pro 64-bit

unistereo

  • New member
  • *
  • Posts: 9
Re: First time installation - not working
« Reply #2 on: August 27, 2015, 10:38:44 pm »
Hi BitBangerUSA thanks for answering me.

Actually I don't know what I want. I just followed the recommended procedure.

I gave a try to version 1.42 as you suggested (downloaded by following the download links at http://www.lazarus-ide.org) but I encounter the exact same issue.

It seems as though Lazarus cannot write to any file on my disk. Like it does not have the necessary permissions.

Any idea from Mac users ?

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: First time installation - not working
« Reply #3 on: August 27, 2015, 10:55:56 pm »
I had to mess around to get it to work on a Mac (ver. 10.6)

I downloaded the package, then the tree separate items.

I installed the three items, then the package, then had to adjust the paths when starting Lazarus, and at one point I had to rebuild it just because, but then it worked.

unistereo

  • New member
  • *
  • Posts: 9
Re: First time installation - not working
« Reply #4 on: August 28, 2015, 01:38:35 am »
Hi Trenatos,

Were you having the same errors as I do ?
Because it really seems as a software protection thing (app that cannot write to disk).

I mean, I guess I could go through the pain of rebuilding the thing but ... I don't know.

I guess my next question is: is it worth it ?
I mean once you've done all that, is it at least working fine afterwards ?

Thanks,

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: First time installation - not working
« Reply #5 on: August 28, 2015, 09:10:48 am »
Quote
I get ' Write Error: Unable to write file "/Users/me/tmp/unit1.pas" '

What did I miss ?
Are you allowed to write to that directory? If not, try changing the temporary folder location to somewhere you're allowed to write. I don't know about mac, but *nix commonly have /tmp for temporary folder and normally it should be writable by any user by default.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1058
Re: First time installation - not working
« Reply #6 on: August 28, 2015, 11:04:14 am »
Hi,

Lazarus got me curious so I thought why not install it on my Mac to see how it works ?

I installed it using the procedure described at getlazarus.org (using curl, setup.sh, etc...).
Installation went smoothly (I already had XCode and the command line tools installed).

I start Lazarus -fine-, go to Run menu and click "Run" to execute the project. 

I get ' Write Error: Unable to write file "/Users/me/tmp/unit1.pas" '

Does the directory "/Users/me/tmp" exist? Did you try saving the project before trying to run it?

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: First time installation - not working
« Reply #7 on: August 28, 2015, 03:12:39 pm »
Rebuilding is simple, click a button.

The folder thing is odd, didn't have that happen. Try setting it to use a different folder?

After I got it working, it works perfectly, yes.

Lazarus is absolutely great, the best RAD tool I've ever used.

unistereo

  • New member
  • *
  • Posts: 9
Re: First time installation - not working
« Reply #8 on: August 28, 2015, 11:10:07 pm »
Hi,

Ok looks like the issue is solved.

For some reason there was already a folder named "tmp" in my home directory (so, at the exact same place where Lazarus was trying to save files).

The interesting detail is that the "tmp" folder was owned by root, so I (my user) actually did not have the rights to write into that.

No idea who or what created that folder -which was empty by the way-.

I re-created that folder using my regular user and boom, issue went away.

After codesigning gdb, I then managed to successfully build and run the default project. 

Pfffeewww.

Thanks everybody for your insights, I can now start digging deeper into the toy and see what it's capable of.



Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: First time installation - not working
« Reply #9 on: August 28, 2015, 11:13:33 pm »
That's great!

Best of luck to you, Lazarus is lots of fun, and this forum is a great place to get help when you get stuck.

 

TinyPortal © 2005-2018