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

Compiling the Perl module on Windows fails with "/sbin: No such file or directory at ./Makefile.PL line 109" #261

Closed
mihaicodrean opened this issue Jan 20, 2021 · 6 comments

Comments

@mihaicodrean
Copy link

I get the following error(s) when using nmake.exe from VS2019 to perform "nmake perl":

Use of uninitialized value $prefix in concatenation (.) or string at ./Makefile.PL line 109.
ERROR from evaluation of net-snmp-5-9-patches\perl\SNMP/Makefile.PL: /sbin: No such file or directory at ./Makefile.PL line 109
NMAKE : fatal error U1077: '...Perl\bin\perl.EXE' : return code '0x2'

Full paths sanitized.

The problematic code line from the GetTestInfo function is:
my $snmpd_path1 = abs_path("${prefix}/sbin");

@bvanassche
Copy link
Contributor

Which procedure has been followed to build the Perl modules? Has build.bat been used or has another approach been used?

@mihaicodrean
Copy link
Author

Initially tried with build.bat, but then switched to manual nmake(s) to avoid reconfiguration.

@bvanassche
Copy link
Contributor

A candidate fix is available on the v5.9 and master branches. Please retest.

@mihaicodrean
Copy link
Author

Thanks. Tested, but even though the path prefix is now there, it still complains that there's no "sbin" subfolder:
ERROR from evaluation of F:\net-snmp\perl\SNMP/Makefile.PL: f:/Program Files (x86)/Net-SNMP/sbin: No such file or directory at ./Makefile.PL line 113
Could it be that the remaining problem is the fact that "nmake install" does not seem to create the "sbin" subfolder?

@bvanassche
Copy link
Contributor

Does commit 385d555 help?

@mihaicodrean
Copy link
Author

Yes, that did the trick (since it no longer looks for "sbin"), thanks!

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