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

Doesn't run on FreeBSD 9.3 #120

Open
SnapshotCiTy opened this issue Jan 1, 2015 · 5 comments
Open

Doesn't run on FreeBSD 9.3 #120

SnapshotCiTy opened this issue Jan 1, 2015 · 5 comments
Labels

Comments

@SnapshotCiTy
Copy link

Hello, I tried to install Znapzend 0.14.0 following both the binary installation and the compile installation process (including the make get-thirdparty-modules step) - as per the readme file and in both cases when trying to run /opt/znapzend-0.14.0/bin/znapzendzetup I get the following error message :

root@abch026:/opt/znapzend-0.14.0/bin # /opt/znapzend-0.14.0/bin/znapzendzetup
Can't locate Mojo/Base.pm in @inc (you may need to install the Mojo::Base module) (@inc contains: /opt/znapzend-0.14.0/bin/../thirdparty/lib/perl5 /opt/znapzend-0.14.0/bin/../lib /usr/local/lib/perl5/site_perl/mach/5.18 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.18/mach /usr/local/lib/perl5/5.18 /usr/local/lib/perl5/site_perl/5.18 /usr/local/lib/perl5/site_perl/5.18/mach .) at /opt/znapzend-0.14.0/bin/znapzendzetup line 12.
BEGIN failed--compilation aborted at /opt/znapzend-0.14.0/bin/znapzendzetup line 12.

root@abch026:/opt/znapzend-0.14.0/bin # perl --version
This is perl 5, version 18, subversion 4 (v5.18.4) built for amd64-freebsd-thread-multi

I haven't found a way to resolve that on my own. Can someone help?

Thank you and have a great and Happy New Year !

Cedric Tineo

@SnapshotCiTy
Copy link
Author

Ok - after trying some more - here's what got me to get it up and running on FreeBSD 9.3 :
(assuming a FreeBSD 9.3 with pkg installed)

pkg install wget
pkg install perl5
pkg install p5-mojo
wget --no-check-certificate https://github.com/oetiker/znapzend/releases/download/v0.14.0/znapzend-prebuilt-0.14.0.tar.gz
#the --no-check-certificate was required to work
tar zxvf znapzend-prebuilt-0.14.0.tar.gz
cp -rp znapzend-prebuilt-0.14.0 /opt/znapzend-0.14.0

then adding the path /opt/znapzend-0.14.0/bin to the set path directive in .cshrc

@oetiker
Copy link
Owner

oetiker commented Jan 2, 2015

did you, by any chance neglect to run the configure script and then make get-thirdparty-modules ?

or did you download directly into the install directory ?

@oetiker oetiker closed this as completed Jan 2, 2015
@SnapshotCiTy
Copy link
Author

No - when trying to build it instead of using the precompiled packages it first needed to use gmake - which was solved by pkg install gmake - then I did use those lines
./configure --prefix=/opt/znapzend-0.14.0
make get-thirdparty-modules
make install
then it complained about not finding mojo - which got solved with pkg install mojo
but then it stops with this error message :

Can't locate ZnapZend/Config.pm in @inc (you may need to install the ZnapZend::Config module) (@inc contains: /opt/znapzend-0.14.0/bin/../thirdparty/lib/perl5 /opt/znapzend-0.14.0/bin/../lib /usr/local/lib/perl5/site_perl/mach/5.18 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.18/mach /usr/local/lib/perl5/5.18 /usr/local/lib/perl5/site_perl/5.18 /usr/local/lib/perl5/site_perl/5.18/mach .) at ./znapzendzetup line 13.
BEGIN failed--compilation aborted at ./znapzendzetup line 13.

At which point I deleted /opt/znapzend* and did it again using the precompiled binaries - and now I get a proper usage manifest when running ./znapzendzetup

@SnapshotCiTy
Copy link
Author

Also, I understand the closing of the issue - as it's not really a bug in the code - but lots of FreeBSD users are going to run in the same problems if the documentation is not updated to a process that is straightforward for the numerous FreeBSD users of ZFS out there :-)

@oetiker oetiker reopened this Jan 2, 2015
@oetiker
Copy link
Owner

oetiker commented Jan 2, 2015

where have you unpacked the source of the tool ?

and what was the output of running configure and make ?

the single purpose of running make get-thirdparty-modules IS to install mojo ... so if it is not installed afterwards, something must have gone pretty wrong

@oetiker oetiker added the bug label Jan 17, 2015
@oetiker oetiker mentioned this issue Jan 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants