Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pack_install(tokenize) failed on macOS #50

Open
vjktm opened this issue Nov 20, 2022 · 2 comments
Open

pack_install(tokenize) failed on macOS #50

vjktm opened this issue Nov 20, 2022 · 2 comments
Assignees

Comments

@vjktm
Copy link

vjktm commented Nov 20, 2022

Hi,
pack_install(tokenize).
only gave an option to use the .zip. When I tried, it failed because of missing libraries on my mac. Is there a list of dependencies I should install first?
Thanks.

@shonfeder
Copy link
Owner

Hi, @vjktm. Thanks for reporting your issue.

Installation should be self-contained, assuming there haven't been any breaking changes to swi-prolog standard libraries. I was just able to install on swi-prolog 8.4.3, so this shouldn't be an issue, afaik.

A zip file is indeed all that is downloaded, then swipl takes care of unpacking the source into your local packages.

Could you please report here

  • what version of swi-prolog you are running
  • the example command you used to install the library
  • the error output you received when you tried to to use_module

Thanks!

@shonfeder shonfeder self-assigned this Nov 21, 2022
@vjktm
Copy link
Author

vjktm commented Nov 21, 2022

Hi @shonfeder , thanks for the response.
swi-prolog 8.5.20
command: pack_install(tokenize).
This time I got:
pack_install(tokenize). % Contacting server at https://www.swi-prolog.org/pack/query ... ok Install [email protected] from https://github.com/shonfeder/tokenize/archive/v1.0.1.zip Y/n? % Contacting server at https://www.swi-prolog.org/pack/query ... ok % "v1.0.1.zip" was downloaded 180 times Package: tokenize Title: A simple tokenization library Installed version: 1.0.1 Author: Shon Feder <[email protected]> Maintainer: Shon Feder <[email protected]> Packager: Shon Feder <[email protected]> Home page: https://github.com/shonfeder/tokenize Download URL: https://github.com/shonfeder/tokenize/release/*.zip Install "tokenize-1.0.1.zip" (16,717 bytes) Y/n? % % PL-Unit: tokenize % .................... done % % All 20 tests passed % % PL-Unit: tokenize % .................... done % % All 20 tests passed % echo "(none)" % (none) true.

Then I did:
use_module(library(tokenize)). which worked. It did not work without library/1

So, now it seems to work.
Previously it could not load some libraries, so I did the following in the mac terminal:
brew update
brew upgrade
I also did:
brew install libb2 since it could not load on the first try.

It seems all this fixed the problem. Appears that my brew installation was not up to date.
I think my issue is solved!
Thanks for your response.

?- tokenize("what is your name?",Tokens). Tokens = [word(what), space(' '), word(is), space(' '), word(your), space(' '), word(name), punct(?)].

Thank you for your library and your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants