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

Can't install dependencies (GraphViz) #15

Open
extde opened this issue Nov 29, 2022 · 7 comments
Open

Can't install dependencies (GraphViz) #15

extde opened this issue Nov 29, 2022 · 7 comments

Comments

@extde
Copy link

extde commented Nov 29, 2022

root@6f38527114dc:/# cpan install GraphViz
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/root/.cpan/Metadata'
Database was generated on Tue, 29 Nov 2022 08:41:02 GMT

(error): Could not expand [GraphViz]. Check the module name.
(info): I can suggest names if you install one of Text::Levenshtein::XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Levenshtein::Damerau::PP
(info): and you provide the -x option on invocation.
(error): Skipping GraphViz because I couldn't find a matching namespace.

@extde
Copy link
Author

extde commented Nov 29, 2022

Looks like it is resolved with

cpanm install GraphViz
...
Successfully installed GraphViz-2.25

Please fix readme & code!

@extde
Copy link
Author

extde commented Nov 29, 2022

Still have an issue.

root@6f38527114dc:~# perl -v

This is perl 5, version 36, subversion 0 (v5.36.0) built for x86_64-linux-gnu
root@6f38527114dc:~# ./callGraph callgraph/CustomScripts/ProductOrderingService.lua

Can't locate GraphViz.pm in @INC (you may need to install the GraphViz module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at (eval 9) line 1.
BEGIN failed--compilation aborted at (eval 9) line 1.

@extde
Copy link
Author

extde commented Nov 29, 2022

Fixed by adding directory where cpanm installed GraphViz

root@dfb2154f1c41:~# perl -I/usr/local/lib/perl5/site_perl callGraph callgraph/CustomScripts/ProductOrderingService.lua
Generating: /tmp/call_graph_Dbv5/ProductOrderingService.lua.dot
Converting to /tmp/call_graph_Dbv5/ProductOrderingService.lua.png
Displaying /tmp/call_graph_Dbv5/ProductOrderingService.lua.png using 'open'

@extde
Copy link
Author

extde commented Nov 29, 2022

So, finally unfortunately, it does not work well for lua.

@koknat
Copy link
Owner

koknat commented Nov 30, 2022

Sorry to hear that!
Would it be possible to share ProductOrderingService.lua with me, so I can see what is not working?

@koknat
Copy link
Owner

koknat commented Jan 13, 2024

image

My testcase is working: bin/luacheck.lua from https://github.com/mpeterv/luacheck
If you have a lua testcase which doesn't work, please upload it here.

@suntong
Copy link

suntong commented Sep 2, 2024

Note that I just come over to report that cpan install GraphViz works at my side, as the readme recommends cpanm install GraphViz while I wasn't prepared to install something that I'll never use again but just for installing GraphViz. YMMV.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 12 (bookworm)
Release:        12
Codename:       bookworm

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

3 participants