AmziProlog icon indicating copy to clipboard operation
AmziProlog copied to clipboard

How to install amziProlog on macos

Open vancaho opened this issue 4 years ago • 2 comments

Hi, I am a new guy to use AmziProlog. I found that there is no release for amziprolog on macos 12.1. I read the doc https://github.com/AmziLS/AmziProlog/blob/master/devdocs/amzi_build.md, and run make -f make_mac64.txt in compile directory. It reports

acmp alib
make: acmp: No such file or directory
make: *** [/abin/alib.plm] Error 1

Then I run make -f make_mac64.txt in make directory,. It reports:

find  -name *.o -exec rm {} \;
find: illegal option -- n
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
       find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
make: *** [dirs] Error 1

How to compile and install amziProlog on macos? Thanks very much!

vancaho avatar Jan 11 '22 10:01 vancaho

Hopefully someone more current with the system will answer. I suspectthat you might be happy if you just download and install the binary distribution, unless you really are interested in rebuilding the system.

—Dennis

On Jan 11, 2022, at 5:15 AM, vancaho @.***> wrote:

Hi, I am a new guy to use AmziProlog. I found that there is no release for amziprolog on macos 12.1. I read the doc https://github.com/AmziLS/AmziProlog/blob/master/devdocs/amzi_build.md, and run make -f make_mac64.txt in compile directory. It reports

acmp alib make: acmp: No such file or directory make: *** [/abin/alib.plm] Error 1 Then I run make -f make_mac64.txt in make directory,. It reports:

find -name *.o -exec rm {} ; find: illegal option -- n usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression] make: *** [dirs] Error 1 How to compile and install amziProlog on macos? Thanks very much!

— Reply to this email directly, view it on GitHub https://github.com/AmziLS/AmziProlog/issues/39, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADS7FIQOEMW3MVNMPROWUYTUVP7KPANCNFSM5LV4U6QA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.

DennisMerritt avatar Jan 11 '22 20:01 DennisMerritt

I was able to get past that by defining APLS_SOURCE, for example:

APLS_SOURCE=~/Downloads/AmziProlog-release_11.0 APLS_RELEASE=$HOME/apls make -f make_mac64.txt

but then ran into this:

gcc -c -w -O2 -fpic -Wimplicit -o lload.o -DENVgm6 -D_UNICODE lload.cpp
lload.cpp:2001:28: error: ordered comparison between pointer and zero ('wchar_t *' and 'int')
   if (Lstrchr(fname, '/') < 0 && Lstrchr(fname, '\\') < 0)  {
       ~~~~~~~~~~~~~~~~~~~ ^ ~
lload.cpp:2001:56: error: ordered comparison between pointer and zero ('wchar_t *' and 'int')
   if (Lstrchr(fname, '/') < 0 && Lstrchr(fname, '\\') < 0)  {
                                  ~~~~~~~~~~~~~~~~~~~~ ^ ~
2 errors generated.

pkania avatar Jan 23 '22 14:01 pkania