hffqyd / tw5-server

A protable local server for TiddlyWiki5 that saves and backups wiki.
GNU General Public License v3.0
25 stars 4 forks source link

Trying to compile tw5server for apple silicon but getting a dependency error #2

Closed vss256 closed 3 months ago

vss256 commented 5 months ago

Hi, I downloaded the latest source zip of the latest release but am getting some dependency errors when trying to compile: (see below).

All suggestions welcome. Thank you.

$ nim c --cpu:arm64 --os:macosx tw5server.nim
Hint: used config file '/usr/local/Cellar/nim/2.0.2/nim/config/nim.cfg' [Conf]
Hint: used config file '/usr/local/Cellar/nim/2.0.2/nim/config/config.nims' [Conf]
..................................................................................................................................................
/Users/xxxx/Downloads/tmp/tw5-server-1.2.1/tw5server.nim(12, 3) Error: cannot open file: zippy
$ which nimble
/usr/local/bin/nimble
$ nimble install zippy
    Prompt: No local packages.json found, download it from internet? [y/N]
    Answer: y
Downloading Official package list
    Success Package list downloaded.
Downloading https://github.com/guzba/zippy using git
  Verifying dependencies for zippy@0.10.11
 Installing zippy@0.10.11
  Success:  zippy installed successfully.
$ nim c --cpu:arm64 --os:macosx tw5server.nim
Hint: used config file '/usr/local/Cellar/nim/2.0.2/nim/config/nim.cfg' [Conf]
Hint: used config file '/usr/local/Cellar/nim/2.0.2/nim/config/config.nims' [Conf]
...................................................................................................................................................................
/Users/xxxx/Downloads/tmp/tw5-server-1.2.1/tw5server.nim(18, 6) Error: cannot open file: parseBody
$ 
hffqyd commented 5 months ago

Sorry, I just noticed the notification.

I forgot to upload the parseBody, which was derived from jester package previously. But I just update the sources, which would be compiled successfully.

If anything happened, please let me know.