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

configure issue on build (with workaround) #22

Open
ns-bak opened this issue Nov 20, 2017 · 1 comment
Open

configure issue on build (with workaround) #22

ns-bak opened this issue Nov 20, 2017 · 1 comment

Comments

@ns-bak
Copy link

ns-bak commented Nov 20, 2017

When running the ./configure script at the top level, the script died when it went into the smbase directory with the following error:

Can't locate sm_config.pm in @INC (you may need to install the sm_config module) (@INC contains: /usr/lib/perl5/site_perl/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.26.1 /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.26.1 /usr/lib/perl5/5.26.1/x86_64-linux-thread-multi /usr/lib/perl5/5.26.1 /usr/lib/perl5/site_perl) at ./configure.pl line 6.
configure failed at ./configure.pl line 128.

For some reason, the smbase/configure.pl:6 require sm_config; line was not able to find the sm_config.pm file in the current directory. My guess is I need to update some config setting to make the @INC path see the local directory? (I freely admit that I don't know what I am doing).

I was able to get the entire configure script to work by changing the line in smbase/configure.pl:6 to do "./sm_config.pm";, but that may be undesired. I've never worked with perl before, so I am not sure if the do statement is bad practice or not.

@noabody
Copy link

noabody commented May 12, 2018

WeiDUorg/elkhound@d422a26
edit smbase/configure.pl:
add use lib '.'

diff --git a/smbase/configure.pl b/smbase/configure.pl
index 06b9678..7173f92 100755
--- a/smbase/configure.pl
+++ b/smbase/configure.pl
@@ -2,6 +2,7 @@
 # configure script for smbase
 
 use strict 'subs';
+use lib '.';
 
 require sm_config;

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