LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-20-2019, 12:24 PM   #1
yoko911
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Rep: Reputation: Disabled
Debug a makefile using cygwin


Hello,

In the place I work we use cygwin to run makefiles that build the entire system, we usually use 'make full' to build everything (embedded multi-core memory files and databases), we work on a Windows environment and laptops are created using a windows image with all the software we may need.

An intern got his laptop and could not run make, the following error appeared:

"make: /usr/bin/perl : Command not found"

The computer has perl installed, we checked by running perl -v.

Obviously that error could mean everything, so my question is, is there a way to debug a makefile in cygwin? like going step by step or it running normally but printing the lines being executed, that way I could debug the line that's causing the error

Needless to say, the make script is lacking on error handling or verbose output.

Thank you
 
Old 06-20-2019, 01:35 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,763

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Code:
perl -v
tells you that perl is installed, but not where it is located.
What does
Code:
which perl
return?
 
Old 06-20-2019, 01:35 PM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Perl can be installed independently of Cygwin on Windows systems. It can be installed as package within Cygwin as well.

When you ran "perl -v" were you in a Cygwin terminal or perhaps at standard Windows CMD?

It may be you have a Windows perl installed but it isn't in /usr/bin/perl. Open Cygwin terminal and type "which perl" to see if it finds it as /usr/bin/perl. If it finds it in an alternate path or doesn't find it at all you likely don't have the package installed from Cygwin. You'd have to run Cygwin's setup and select the package to install it.

You can run "cygcheck -l |grep -i perl" to see if you have Perl packages/files installed:
/usr/bin/perl.exe
/usr/bin/perl5.22.2.exe
/usr/bin/cygperl5_22.dll
/usr/share/doc/perl/AUTHORS
/usr/share/doc/perl/CHANGES
/usr/share/doc/perl/COPYING
/usr/share/doc/perl/README
/usr/lib/perl5/5.22/AutoLoader.pm
/usr/lib/perl5/5.22/AutoSplit.pm
/usr/lib/perl5/5.22/B/Debug.pm
/usr/lib/perl5/5.22/B/Deparse.pm
/usr/lib/perl5/5.22/B/Op_private.pm
/usr/lib/perl5/5.22/CPAN/Meta/Converter.pm
/usr/lib/perl5/5.22/CPAN/Meta/Feature.pm
/usr/lib/perl5/5.22/CPAN/Meta/History/Meta_1_0.pod
/usr/lib/perl5/5.22/CPAN/Meta/History/Meta_1_1.pod
/usr/lib/perl5/5.22/CPAN/Meta/History/Meta_1_2.pod
/usr/lib/perl5/5.22/CPAN/Meta/History/Meta_1_3.pod
/usr/lib/perl5/5.22/CPAN/Meta/History/Meta_1_4.pod
/usr/lib/perl5/5.22/CPAN/Meta/History.pm
/usr/lib/perl5/5.22/CPAN/Meta/Merge.pm
/usr/lib/perl5/5.22/CPAN/Meta/Prereqs.pm
/usr/lib/perl5/5.22/CPAN/Meta/Requirements.pm
/usr/lib/perl5/5.22/CPAN/Meta/Spec.pm
/usr/lib/perl5/5.22/CPAN/Meta/Validator.pm
/usr/lib/perl5/5.22/CPAN/Meta/YAML.pm
/usr/lib/perl5/5.22/CPAN/Meta.pm
/usr/lib/perl5/5.22/Carp/Heavy.pm
/usr/lib/perl5/5.22/Carp.pm
/usr/lib/perl5/5.22/Class/Struct.pm
/usr/lib/perl5/5.22/Config/Extensions.pm
/usr/lib/perl5/5.22/Config/Perl/V.pm
/usr/lib/perl5/5.22/Digest/base.pm
/usr/lib/perl5/5.22/Digest/file.pm
/usr/lib/perl5/5.22/Digest.pm
/usr/lib/perl5/5.22/DirHandle.pm
/usr/lib/perl5/5.22/Exporter/Heavy.pm
/usr/lib/perl5/5.22/Exporter.pm
/usr/lib/perl5/5.22/ExtUtils/Liblist/Kid.pm
/usr/lib/perl5/5.22/ExtUtils/Liblist.pm
/usr/lib/perl5/5.22/ExtUtils/MakeMaker/Config.pm
/usr/lib/perl5/5.22/ExtUtils/MakeMaker/FAQ.pod
/usr/lib/perl5/5.22/ExtUtils/MakeMaker/Locale.pm
/usr/lib/perl5/5.22/ExtUtils/MakeMaker/Tutorial.pod
/usr/lib/perl5/5.22/ExtUtils/MakeMaker/version/regex.pm
/usr/lib/perl5/5.22/ExtUtils/MakeMaker/version/vpp.pm
/usr/lib/perl5/5.22/ExtUtils/MakeMaker/version.pm
/usr/lib/perl5/5.22/ExtUtils/MakeMaker.pm
/usr/lib/perl5/5.22/ExtUtils/Embed.pm
/usr/lib/perl5/5.22/ExtUtils/Manifest.pm
/usr/lib/perl5/5.22/ExtUtils/Miniperl.pm
/usr/lib/perl5/5.22/ExtUtils/Mksymlists.pm
/usr/lib/perl5/5.22/ExtUtils/MM.pm
/usr/lib/perl5/5.22/ExtUtils/MM_AIX.pm
/usr/lib/perl5/5.22/ExtUtils/MM_Any.pm
/usr/lib/perl5/5.22/ExtUtils/MM_BeOS.pm
/usr/lib/perl5/5.22/ExtUtils/MM_Cygwin.pm
/usr/lib/perl5/5.22/ExtUtils/MM_DOS.pm
/usr/lib/perl5/5.22/ExtUtils/MM_Darwin.pm
/usr/lib/perl5/5.22/ExtUtils/MM_MacOS.pm
/usr/lib/perl5/5.22/ExtUtils/MM_NW5.pm
/usr/lib/perl5/5.22/ExtUtils/MM_OS2.pm
/usr/lib/perl5/5.22/ExtUtils/MM_QNX.pm
/usr/lib/perl5/5.22/ExtUtils/MM_UWIN.pm
/usr/lib/perl5/5.22/ExtUtils/MM_Unix.pm
/usr/lib/perl5/5.22/ExtUtils/MM_VMS.pm
/usr/lib/perl5/5.22/ExtUtils/MM_VOS.pm
/usr/lib/perl5/5.22/ExtUtils/MM_Win32.pm
/usr/lib/perl5/5.22/ExtUtils/MM_Win95.pm
/usr/lib/perl5/5.22/ExtUtils/MY.pm
/usr/lib/perl5/5.22/File/Basename.pm
/usr/lib/perl5/5.22/File/Compare.pm
/usr/lib/perl5/5.22/File/Copy.pm
/usr/lib/perl5/5.22/File/Fetch.pm
/usr/lib/perl5/5.22/File/Find.pm
/usr/lib/perl5/5.22/File/GlobMapper.pm
/usr/lib/perl5/5.22/File/Path.pm
/usr/lib/perl5/5.22/File/stat.pm
/usr/lib/perl5/5.22/File/Temp.pm
/usr/lib/perl5/5.22/FileHandle.pm
/usr/lib/perl5/5.22/FindBin.pm
/usr/lib/perl5/5.22/Getopt/Long.pm
/usr/lib/perl5/5.22/Getopt/Std.pm
/usr/lib/perl5/5.22/I18N/Collate.pm
/usr/lib/perl5/5.22/I18N/LangTags/Detect.pm
/usr/lib/perl5/5.22/I18N/LangTags/List.pm
/usr/lib/perl5/5.22/I18N/LangTags.pm
/usr/lib/perl5/5.22/IO/Socket/IP.pm
/usr/lib/perl5/5.22/IPC/Cmd.pm
/usr/lib/perl5/5.22/IPC/Open2.pm
/usr/lib/perl5/5.22/IPC/Open3.pm
/usr/lib/perl5/5.22/Locale/Maketext.pm
/usr/lib/perl5/5.22/Locale/Maketext/Simple.pm
/usr/lib/perl5/5.22/Math/BigInt/Calc.pm
/usr/lib/perl5/5.22/Math/BigInt/CalcEmu.pm
/usr/lib/perl5/5.22/Math/BigInt/Trace.pm
/usr/lib/perl5/5.22/Math/BigInt.pm
/usr/lib/perl5/5.22/Math/BigFloat/Trace.pm
/usr/lib/perl5/5.22/Math/BigFloat.pm
/usr/lib/perl5/5.22/Module/CoreList/TieHashDelta.pm
/usr/lib/perl5/5.22/Module/CoreList/Utils.pm
/usr/lib/perl5/5.22/Module/CoreList.pm
/usr/lib/perl5/5.22/Module/CoreList.pod
/usr/lib/perl5/5.22/Module/Load/Conditional.pm
/usr/lib/perl5/5.22/Module/Load.pm
/usr/lib/perl5/5.22/Module/Loaded.pm
/usr/lib/perl5/5.22/Module/Metadata.pm
/usr/lib/perl5/5.22/Params/Check.pm
/usr/lib/perl5/5.22/Parse/CPAN/Meta.pm
/usr/lib/perl5/5.22/PerlIO/via/QuotedPrint.pm
/usr/lib/perl5/5.22/PerlIO.pm
/usr/lib/perl5/5.22/Pod/Simple/BlackBox.pm
/usr/lib/perl5/5.22/Pod/Simple/Checker.pm
/usr/lib/perl5/5.22/Pod/Simple/Debug.pm
/usr/lib/perl5/5.22/Pod/Simple/DumpAsText.pm
/usr/lib/perl5/5.22/Pod/Simple/DumpAsXML.pm
/usr/lib/perl5/5.22/Pod/Simple/HTML.pm
/usr/lib/perl5/5.22/Pod/Simple/HTMLBatch.pm
/usr/lib/perl5/5.22/Pod/Simple/HTMLLegacy.pm
/usr/lib/perl5/5.22/Pod/Simple/LinkSection.pm
/usr/lib/perl5/5.22/Pod/Simple/Methody.pm
/usr/lib/perl5/5.22/Pod/Simple/Progress.pm
/usr/lib/perl5/5.22/Pod/Simple/PullParser.pm
/usr/lib/perl5/5.22/Pod/Simple/PullParserEndToken.pm
/usr/lib/perl5/5.22/Pod/Simple/PullParserStartToken.pm
/usr/lib/perl5/5.22/Pod/Simple/PullParserTextToken.pm
/usr/lib/perl5/5.22/Pod/Simple/PullParserToken.pm
/usr/lib/perl5/5.22/Pod/Simple/RTF.pm
/usr/lib/perl5/5.22/Pod/Simple/Search.pm
/usr/lib/perl5/5.22/Pod/Simple/SimpleTree.pm
/usr/lib/perl5/5.22/Pod/Simple/Subclassing.pod
/usr/lib/perl5/5.22/Pod/Simple/Text.pm
/usr/lib/perl5/5.22/Pod/Simple/TextContent.pm
/usr/lib/perl5/5.22/Pod/Simple/TiedOutFH.pm
/usr/lib/perl5/5.22/Pod/Simple/Transcode.pm
/usr/lib/perl5/5.22/Pod/Simple/TranscodeDumb.pm
/usr/lib/perl5/5.22/Pod/Simple/TranscodeSmart.pm
/usr/lib/perl5/5.22/Pod/Simple/XHTML.pm
/usr/lib/perl5/5.22/Pod/Simple/XMLOutStream.pm
/usr/lib/perl5/5.22/Pod/Simple.pm
/usr/lib/perl5/5.22/Pod/Usage.pm
/usr/lib/perl5/5.22/Pod/Text.pm
/usr/lib/perl5/5.22/Pod/Escapes.pm
/usr/lib/perl5/5.22/Pod/Find.pm
/usr/lib/perl5/5.22/Pod/Parser.pm
/usr/lib/perl5/5.22/Pod/InputObjects.pm
/usr/lib/perl5/5.22/Safe.pm
/usr/lib/perl5/5.22/SelectSaver.pm
/usr/lib/perl5/5.22/SelfLoader.pm
/usr/lib/perl5/5.22/Symbol.pm
/usr/lib/perl5/5.22/Term/ANSIColor.pm
/usr/lib/perl5/5.22/Term/Cap.pm
/usr/lib/perl5/5.22/Test/Builder/IO/Scalar.pm
/usr/lib/perl5/5.22/Test/Builder/Module.pm
/usr/lib/perl5/5.22/Test/Builder/Tester/Color.pm
/usr/lib/perl5/5.22/Test/Builder/Tester.pm
/usr/lib/perl5/5.22/Test/Builder.pm
/usr/lib/perl5/5.22/Test/More.pm
/usr/lib/perl5/5.22/Text/Abbrev.pm
/usr/lib/perl5/5.22/Text/Balanced.pm
/usr/lib/perl5/5.22/Text/ParseWords.pm
/usr/lib/perl5/5.22/Text/Tabs.pm
/usr/lib/perl5/5.22/Text/Wrap.pm
/usr/lib/perl5/5.22/Tie/Hash.pm
/usr/lib/perl5/5.22/Tie/Handle.pm
/usr/lib/perl5/5.22/Tie/StdHandle.pm
/usr/lib/perl5/5.22/Time/Local.pm
/usr/lib/perl5/5.22/UNIVERSAL.pm
/usr/lib/perl5/5.22/Win32API/File/cFile.pc
/usr/lib/perl5/5.22/XSLoader.pm
/usr/lib/perl5/5.22/base.pm
/usr/lib/perl5/5.22/bytes.pm
/usr/lib/perl5/5.22/bytes_heavy.pl
/usr/lib/perl5/5.22/constant.pm
/usr/lib/perl5/5.22/feature.pm
/usr/lib/perl5/5.22/fields.pm
/usr/lib/perl5/5.22/integer.pm
/usr/lib/perl5/5.22/locale.pm
/usr/lib/perl5/5.22/overload/numbers.pm
/usr/lib/perl5/5.22/overload.pm
/usr/lib/perl5/5.22/overloading.pm
/usr/lib/perl5/5.22/parent.pm
/usr/lib/perl5/5.22/strict.pm
/usr/lib/perl5/5.22/unicore/Name.pm
/usr/lib/perl5/5.22/unicore/Heavy.pl
/usr/lib/perl5/5.22/unicore/Name.pl
/usr/lib/perl5/5.22/utf8.pm
/usr/lib/perl5/5.22/utf8_heavy.pl
/usr/lib/perl5/5.22/vars.pm
/usr/lib/perl5/5.22/version.pm
/usr/lib/perl5/5.22/version/regex.pm
/usr/lib/perl5/5.22/warnings/register.pm
/usr/lib/perl5/5.22/warnings.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/B.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Config.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Config_heavy.pl
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Cwd.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Data/Dumper.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Digest/MD5.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Digest/SHA.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/DynaLoader.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/Alias.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/Byte.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/CJKConstants.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/CN/HZ.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/CN.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/Config.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/EBCDIC.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/Encoder.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/Encoding.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/GSM0338.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/Guess.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/JP/H2Z.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/JP/JIS7.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/JP.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/KR/2022_KR.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/KR.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/MIME/Header/ISO_2022_JP.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/MIME/Header.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/MIME/Name.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/Symbol.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/TW.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/Unicode/UTF7.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode/Unicode.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Encode.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Errno.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Fcntl.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/File/DosGlob.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/File/Glob.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/File/Spec/Cygwin.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/File/Spec/Epoc.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/File/Spec/Functions.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/File/Spec/Mac.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/File/Spec/OS2.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/File/Spec/Unix.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/File/Spec/VMS.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/File/Spec/Win32.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/File/Spec.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/I18N/Langinfo.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/IO.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/IO/Dir.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/IO/File.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/IO/Handle.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/IO/Pipe.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/IO/Poll.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/IO/Seekable.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/IO/Select.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/IO/Socket/INET.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/IO/Socket/UNIX.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/IO/Socket.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/List/Util/XS.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/List/Util.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/MIME/Base64.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/MIME/QuotedPrint.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Opcode.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/POSIX.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/PerlIO/encoding.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/PerlIO/mmap.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/PerlIO/scalar.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/PerlIO/via.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Scalar/Util.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Socket.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Storable.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Time/HiRes.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Time/Piece.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Time/Seconds.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Win32.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/Win32API/File.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/attributes.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/lib.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/mro.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/re.pm
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/B/B.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Cwd/Cwd.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Data/Dumper/Dumper.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Digest/MD5/MD5.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Digest/SHA/SHA.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Encode/Byte/Byte.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Encode/CN/CN.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Encode/EBCDIC/EBCDIC.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Encode/Encode.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Encode/JP/JP.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Encode/KR/KR.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Encode/Symbol/Symbol.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Encode/TW/TW.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Encode/Unicode/Unicode.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Fcntl/Fcntl.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/File/DosGlob/DosGlob.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/File/Glob/Glob.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Hash/Util/FieldHash/FieldHash.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Hash/Util/Util.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/I18N/Langinfo/Langinfo.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/IO/IO.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/List/Util/Util.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/MIME/Base64/Base64.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/POSIX/POSIX.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/PerlIO/encoding/encoding.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/PerlIO/mmap/mmap.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/PerlIO/scalar/scalar.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/PerlIO/via/via.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Socket/Socket.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Storable/Storable.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Time/HiRes/HiRes.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Time/Piece/Piece.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Win32/Win32.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/Win32API/File/File.dll
/usr/lib/perl5/5.22/x86_64-cygwin-threads/auto/mro/mro.dll
 
Old 06-20-2019, 01:37 PM   #4
yoko911
LQ Newbie
 
Registered: Jun 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Yes, I meant that perl its actually installed, I also used
Code:
'which perl'
which responds
Code:
/usr/bin/perl
maybe the command that triggering this is trying to access an specific perl command or something, thats why I wanted to debug the makefile
 
Old 06-20-2019, 01:43 PM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,763

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Another point: New intern, new laptop.

Is it configured as other laptops are?
Can others run the make on their laptops? If so, check the configuration on the new laptop.
 
Old 06-20-2019, 01:48 PM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,100

Rep: Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365Reputation: 7365
and actually which make is it? Did you try to find perl inside the makefiles?
If it was the gmake you can use -v, --trace or --debug to see what's going on (among others).
 
Old 06-20-2019, 01:59 PM   #7
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by yoko911 View Post
Yes, I meant that perl its actually installed, I also used
Code:
'which perl'
which responds
Code:
/usr/bin/perl
maybe the command that triggering this is trying to access an specific perl command or something, thats why I wanted to debug the makefile
So are you running the make in the same terminal that responded with /usr/bin/perl not found? /usr/bin/perl would make sense within the Cygwin terminal but would fail in a Windows CMD terminal because it isn't a valid path in the latter.

On checking just now I see /usr in my Cygwin terminal lists:
drwxr-xr-x+ 1 myuser Domain Users 0 Apr 19 2018 bin
drwxr-xr-x+ 1 myuser Domain Users 0 Aug 24 2016 include
drwxr-xr-x+ 1 myuser Domain Users 0 Aug 24 2016 lib
drwxr-xr-x+ 1 myuser Domain Users 0 Aug 24 2016 libexec
drwxr-xr-x+ 1 myuser Domain Users 0 May 11 2016 local
drwxr-xr-x+ 1 myuser Domain Users 0 Aug 24 2016 sbin
drwxr-xr-x+ 1 myuser Domain Users 0 Aug 24 2016 share
drwxr-xr-x+ 1 myuser Domain Users 0 May 11 2016 src
drwxr-xr-x+ 1 myuser Domain Users 0 Aug 24 2016 ssl
drwxrwxrwt+ 1 myuser Domain Users 0 May 11 2016 tmp

That filesystem is listed as:
df -hP .
Filesystem Size Used Avail Use% Mounted on
C:/cygwin64 466G 424G 42G 92% /

In Windows CMD I can type C: to go to the C drive then "cd cygwin64\usr" to go to the directory. However, when I list it the bin subdirectory isn't there:
C:\cygwin64>cd usr

C:\cygwin64\usr>dir
Volume in drive C has no label.
Volume Serial Number is BE98-CD43

Directory of C:\cygwin64\usr

05/11/2016 02:33 PM <DIR> .
05/11/2016 02:33 PM <DIR> ..
08/24/2016 09:45 AM <DIR> include
08/24/2016 09:45 AM <DIR> libexec
05/11/2016 02:33 PM <DIR> local
08/24/2016 09:45 AM <DIR> sbin
08/24/2016 09:46 AM <DIR> share
05/11/2016 02:33 PM <DIR> src
08/24/2016 09:45 AM <DIR> ssl
05/11/2016 02:33 PM <DIR> tmp
0 File(s) 0 bytes
10 Dir(s) 44,876,910,592 bytes free

That means it would only work if I ran the make from within the Cygwin terminal.
 
Old 06-21-2019, 02:02 AM   #8
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,886
Blog Entries: 1

Rep: Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872Reputation: 1872
Does /usr/bin/perl actually work? For example, if it has unresolved externals, it won't run.
 
Old 06-21-2019, 07:55 AM   #9
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by NevemTeve View Post
Does /usr/bin/perl actually work? For example, if it has unresolved externals, it won't run.
Good point. What happens if "/usr/bin/perl -v" is run instead of just "perl -v"?

If /usr/bin/perl were a symbolic link to a non-existent file (or /usr/bin or /usr to non-existent directories) I'd expect the "not found" but I didn't see such links on my Cygwin install.

However, because of the "not found" I'd think it more likely it is failing in an environment (e.g. Windows CMD) that isn't the same as the one where "which" worked (e.g. Cygwin terminal).

P.S. Or maybe a lack of permissions to /usr, /usr/bin or /usr/bin/perl in the user environment where the make is being run.
 
Old 02-01-2022, 09:13 AM   #10
Daniel Hatton
LQ Newbie
 
Registered: Feb 2022
Posts: 1

Rep: Reputation: 0
I think it's noteworthy that the error message has a space between the word "perl" and the subsequent colon

Code:
make: /usr/bin/perl : Command not found
                   ^
                   |
That's what you get when, at a bash prompt, you issue the command "/usr/bin/perl" followed by a backslash-escaped space.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Makefile errors when attempting to configure TkGate Linux software on Windows using Cygwin LordFrieza Linux - Newbie 5 10-16-2016 04:36 PM
[SOLVED] Unsuccessful debug using Makefile during integration of cpp code to c code eryn Programming 4 05-13-2010 09:36 PM
automake, makefile, makefile.in and makefile.am Fond_of_Opensource Linux - Newbie 1 09-12-2006 08:35 PM
what is the meaning of Makefile,Makefile.am,Makefile.in cynthia_thomas Linux - General 3 12-08-2005 05:00 AM
[debug]what does the following debug information mean icoming Programming 21 06-08-2004 02:13 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration