PLangHQ / plang

The code repository from plang programming language
GNU Lesser General Public License v2.1
51 stars 5 forks source link

MacOS support #4

Open ingig opened 11 months ago

ingig commented 11 months ago

Confirm and fix error that come up on MacOS

RossAddinall commented 8 months ago

Hi, Was intrigued to try PLang on MacOS, had to install in user directory then chmod 755 to get it to execute and then when I did I got the "cannot be opened because this was downloaded from the internet" type message. Also tried to get into discord, but discord always asks me to verify and then tells me that my e-mail address is already in use, which it is because I already have a discord account. Long story-short, I just wasted an hour and got nothing for it, I need to get back to work, but I wish you the best in getting this interesting looking language off the ground. I hope this feedback helps a little, it's meant with the best intentions and not just to be a winge.

ingig commented 8 months ago

@RossAddinall Thanks for letting me know. To bad it went the way it went. I unfortunately haven´t been able to try it on MacOS, I was trusting that it works same on MacOS as it does on Linux, but I need to do some proper testing. Sad also about not getting into Discord, but you are welcome email me any time plang@plang.is if you take a look into it again when I have solve the MacOS to run

RossAddinall commented 8 months ago

@ingig if you do get a chance to do something for MacOS I'd be happy to give it a go, though I'm busy with work commitments so might not respond quickly. There were a couple of issues that I ran into and forgive me some of these are pretty lame and yes I could go do more digging, but don't have time and feel it better the give you what I do have:

  1. I used sudo unzip plang-osx-x64.zip -d /usr/local/plang to unpack it. There are two issues I faced with this, one was that plang didn't have execute permissions so I had to sudo chmod 755 and the other was that this approach meant that the executable was /usr/local/plang/plang/plang, I should have done sudo unzip plang-osx-x64.zip -d /usr/local and remove the redundant directory layer.
  2. I managed to get around launching plang by following this, but then I ran into the same issue for libhostfxr.dylib (“libhostfxr.dylib” can’t be opened because Apple cannot check it for malicious software.), at this point it felt like I was going to have to go through every exe and lib file in the distribution.

I hope this helps a little.

ingig commented 8 months ago

Thank you for all the info, it will for sure help. I got a friend today to run it on MacOS and it is nightmare to get it running. I'm not sure what they did so I can't give instructions, but it's so bad that I think it wouldn't be worth to post instructions

I will put in effort to fix this, although I expect it will take some time (weeks), but I'll post here when it works

The long time estimation is because I'm lost here and need to learn, so big unknown.

RossAddinall commented 8 months ago

Yeah, I've just switched to MacOS (from Windows). In some regards it's great because at the command line it's like Unix, but then you get hit with stuff like this and I have no idea what to do At least on Windows you are under no illusions and if you need Unix can spin up a VM or a container.

I think you need to somehow get your code "blessed" by Apple, which probably means paying to be an Apple developer and then submitting your code to them, but I don't really know.

ingig commented 7 months ago

@RossAddinall I believe I have solve the MacOS issue with running it. I managed to run it on a virtual server as I don't have a Mac my self. You can find the new release here https://github.com/PLangHQ/plang/releases (0.1.0.3) and installation instructions https://github.com/PLangHQ/plang/blob/main/Documentation/Install.md#installing-plang-on-macos