veket官方网站论坛

veket

 找回密码
 要注册
搜索
楼主: zhushengm

运行perl脚本的问题

[复制链接]
 楼主| 发表于 2023-9-11 19:43 | 显示全部楼层
lrxkqv 发表于 2023-9-11 13:46
https://cpan.metacpan.org/authors/id/S/SH/SHAY/Filter-Crypto-2.10.tar.gz
你这个要求的Filter-Crypto ...

安装报错
  1. $ perl Makefile.PL      perl Makefile.PL
  2.         make
  3.         make test
  4.         make install

  5. Where is your OpenSSL? [/usr] /usr

  6. Found include directory ............ /usr/include
  7. Found OpenSSL version .............. 3.0.8
  8. Found crypto library ............... /usr/lib/x86_64-linux-gnu/libcrypto.a
  9. Found binary executable ............ /usr/bin/openssl

  10. Cipher algorithms available:
  11.   [ 1] DES block cipher
  12.   [ 2] Two key triple DES block cipher
  13.   [ 3] Three key triple DES block cipher
  14.   [ 4] DESX block cipher
  15.   [ 5] RC4 stream cipher
  16.   [ 6] IDEA block cipher
  17.   [ 7] RC2 block cipher
  18.   [ 8] Blowfish block cipher
  19.   [ 9] Null cipher
  20.   [10] RC5 block cipher
  21.   [11] CAST5 block cipher
  22.   [12] AES block cipher
  23. Which cipher algorithm do you want to use? [12] 9

  24. Using fixed key length ............. 0

  25. Your cipher configuration has been written to the file 'CipherConfig.h'.
  26. You may want to keep this file in a safe place if you ever need to rebuild
  27. these modules using the same configuration, especially if your key was
  28. randomly generated.

  29. Build options:
  30.   [1] Build both components
  31.   [2] Build CryptFile component only
  32.   [3] Build Decrypt component only
  33. Which component(s) do you want to build? [1] 1

  34. Do you want to install 'crypt_file'? [y] y

  35. Writing MYMETA.yml and MYMETA.json
  36. Writing MYMETA.yml and MYMETA.json
  37. Generating a Unix-style Makefile
  38. Writing Makefile for Filter::Crypto
  39. Writing MYMETA.yml and MYMETA.json
  40. cp lib/Filter/Crypto.pm blib/lib/Filter/Crypto.pm
  41. cp lib/PAR/Filter/Crypto.pm blib/lib/PAR/Filter/Crypto.pm
  42. make[1]: 进入目录“/root/下载/Filter-Crypto-2.10/CryptFile”
  43. cp lib/Filter/Crypto/CryptFile.pm ../blib/lib/Filter/Crypto/CryptFile.pm
  44. Running Mkbootstrap for CryptFile ()
  45. chmod 644 "CryptFile.bs"
  46. "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- CryptFile.bs ../blib/arch/auto/Filter/Crypto/CryptFile/CryptFile.bs 644
  47. "/usr/bin/perl" "/usr/share/perl/5.36.0/ExtUtils/xsubpp"  -typemap '/usr/share/perl/5.36/ExtUtils/typemap' -typemap '/root/ä¸è½½/Filter-Crypto-2.10/CryptFile/typemap'  CryptFile.xs > CryptFile.xsc
  48. Can't find /root/ä¸è½½/Filter-Crypto-2.10/CryptFile/typemap in /root/下载/Filter-Crypto-2.10/CryptFile
  49. make[1]: *** [Makefile:343:CryptFile.c] 错误 2
  50. make[1]: 离开目录“/root/下载/Filter-Crypto-2.10/CryptFile”
  51. make: *** [Makefile:521:subdirs] 错误 2
  52. make[1]: 进入目录“/root/下载/Filter-Crypto-2.10/CryptFile”
  53. "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- CryptFile.bs ../blib/arch/auto/Filter/Crypto/CryptFile/CryptFile.bs 644
  54. "/usr/bin/perl" "/usr/share/perl/5.36.0/ExtUtils/xsubpp"  -typemap '/usr/share/perl/5.36/ExtUtils/typemap' -typemap '/root/ä¸è½½/Filter-Crypto-2.10/CryptFile/typemap'  CryptFile.xs > CryptFile.xsc
  55. Can't find /root/ä¸è½½/Filter-Crypto-2.10/CryptFile/typemap in /root/下载/Filter-Crypto-2.10/CryptFile
  56. make[1]: *** [Makefile:343:CryptFile.c] 错误 2
  57. make[1]: 离开目录“/root/下载/Filter-Crypto-2.10/CryptFile”
  58. make: *** [Makefile:521:subdirs] 错误 2
  59. make[1]: 进入目录“/root/下载/Filter-Crypto-2.10/CryptFile”
  60. "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- CryptFile.bs ../blib/arch/auto/Filter/Crypto/CryptFile/CryptFile.bs 644
  61. "/usr/bin/perl" "/usr/share/perl/5.36.0/ExtUtils/xsubpp"  -typemap '/usr/share/perl/5.36/ExtUtils/typemap' -typemap '/root/ä¸è½½/Filter-Crypto-2.10/CryptFile/typemap'  CryptFile.xs > CryptFile.xsc
  62. Can't find /root/ä¸è½½/Filter-Crypto-2.10/CryptFile/typemap in /root/下载/Filter-Crypto-2.10/CryptFile
  63. make[1]: *** [Makefile:343:CryptFile.c] 错误 2
  64. make[1]: 离开目录“/root/下载/Filter-Crypto-2.10/CryptFile”
  65. make: *** [Makefile:521:subdirs] 错误 2
复制代码
 楼主| 发表于 2023-9-11 19:45 | 显示全部楼层
复制到非中文路径安装报错
  1. perl Makefile.PL
  2.         make
  3.         make test
  4.         make install

  5. Where is your OpenSSL? [/usr] /usr

  6. Found include directory ............ /usr/include
  7. Found OpenSSL version .............. 3.0.8
  8. Found crypto library ............... /usr/lib/x86_64-linux-gnu/libcrypto.a
  9. Found binary executable ............ /usr/bin/openssl

  10. Cipher algorithms available:
  11.   [ 1] DES block cipher
  12.   [ 2] Two key triple DES block cipher
  13.   [ 3] Three key triple DES block cipher
  14.   [ 4] DESX block cipher
  15.   [ 5] RC4 stream cipher
  16.   [ 6] IDEA block cipher
  17.   [ 7] RC2 block cipher
  18.   [ 8] Blowfish block cipher
  19.   [ 9] Null cipher
  20.   [10] RC5 block cipher
  21.   [11] CAST5 block cipher
  22.   [12] AES block cipher
  23. Which cipher algorithm do you want to use? [12] 9

  24. Using fixed key length ............. 0

  25. Your cipher configuration has been written to the file 'CipherConfig.h'.
  26. You may want to keep this file in a safe place if you ever need to rebuild
  27. these modules using the same configuration, especially if your key was
  28. randomly generated.

  29. Build options:
  30.   [1] Build both components
  31.   [2] Build CryptFile component only
  32.   [3] Build Decrypt component only
  33. Which component(s) do you want to build? [1] 1

  34. Do you want to install 'crypt_file'? [y] y

  35. Writing MYMETA.yml and MYMETA.json
  36. Writing MYMETA.yml and MYMETA.json
  37. Generating a Unix-style Makefile
  38. Writing Makefile for Filter::Crypto
  39. Writing MYMETA.yml and MYMETA.json
  40. Skip blib/lib/PAR/Filter/Crypto.pm (unchanged)
  41. Skip blib/lib/Filter/Crypto.pm (unchanged)
  42. make[1]: 进入目录“/opt/Filter-Crypto-2.10/CryptFile”
  43. Skip ../blib/lib/Filter/Crypto/CryptFile.pm (unchanged)
  44. Running Mkbootstrap for CryptFile ()
  45. chmod 644 "CryptFile.bs"
  46. "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- CryptFile.bs ../blib/arch/auto/Filter/Crypto/CryptFile/CryptFile.bs 644
  47. "/usr/bin/perl" "/usr/share/perl/5.36.0/ExtUtils/xsubpp"  -typemap '/usr/share/perl/5.36/ExtUtils/typemap' -typemap '/opt/Filter-Crypto-2.10/CryptFile/typemap'  CryptFile.xs > CryptFile.xsc
  48. mv CryptFile.xsc CryptFile.c
  49. x86_64-linux-gnu-gcc -c  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION="2.10" -DXS_VERSION="2.10" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.36/CORE"  -DFILTER_CRYPTO_OPENSSL_VERSION=3000008 CryptFile.c
  50. In file included from CryptFile.xs:27:
  51. /usr/include/unistd.h:226:10: fatal error: stddef.h: 没有那个文件或目录
  52.   226 | #include <stddef.h>
  53.       |          ^~~~~~~~~~
  54. compilation terminated.
  55. make[1]: *** [Makefile:325:CryptFile.o] 错误 1
  56. make[1]: 离开目录“/opt/Filter-Crypto-2.10/CryptFile”
  57. make: *** [Makefile:521:subdirs] 错误 2
  58. make[1]: 进入目录“/opt/Filter-Crypto-2.10/CryptFile”
  59. "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- CryptFile.bs ../blib/arch/auto/Filter/Crypto/CryptFile/CryptFile.bs 644
  60. x86_64-linux-gnu-gcc -c  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION="2.10" -DXS_VERSION="2.10" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.36/CORE"  -DFILTER_CRYPTO_OPENSSL_VERSION=3000008 CryptFile.c
  61. In file included from CryptFile.xs:27:
  62. /usr/include/unistd.h:226:10: fatal error: stddef.h: 没有那个文件或目录
  63.   226 | #include <stddef.h>
  64.       |          ^~~~~~~~~~
  65. compilation terminated.
  66. make[1]: *** [Makefile:325:CryptFile.o] 错误 1
  67. make[1]: 离开目录“/opt/Filter-Crypto-2.10/CryptFile”
  68. make: *** [Makefile:521:subdirs] 错误 2
  69. make[1]: 进入目录“/opt/Filter-Crypto-2.10/CryptFile”
  70. "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- CryptFile.bs ../blib/arch/auto/Filter/Crypto/CryptFile/CryptFile.bs 644
  71. x86_64-linux-gnu-gcc -c  -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION="2.10" -DXS_VERSION="2.10" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.36/CORE"  -DFILTER_CRYPTO_OPENSSL_VERSION=3000008 CryptFile.c
  72. In file included from CryptFile.xs:27:
  73. /usr/include/unistd.h:226:10: fatal error: stddef.h: 没有那个文件或目录
  74.   226 | #include <stddef.h>
  75.       |          ^~~~~~~~~~
  76. compilation terminated.
  77. make[1]: *** [Makefile:325:CryptFile.o] 错误 1
  78. make[1]: 离开目录“/opt/Filter-Crypto-2.10/CryptFile”
  79. make: *** [Makefile:521:subdirs] 错误 2
复制代码


主要是提示
  1. /usr/include/unistd.h:226:10: fatal error: stddef.h: 没有那个文件或目录
  2.   226 | #include <stddef.h>
  3.       |          ^~~~~~~~~~
  4. compilation terminated.
复制代码
发表于 2023-9-11 23:55 | 显示全部楼层
zhushengm 发表于 2023-9-11 19:34
我是不是可以升级perl到5.38
但是按照官网方法

cc:未找到命令

这个是要挂载开发包:
http://www.lucky8k.com/thread-134607-1-1.html
如果安装软件这个是必须要安装上的。
发表于 2023-9-12 00:01 | 显示全部楼层
zhushengm 发表于 2023-9-11 19:45
复制到非中文路径安装报错

5.36
你在12楼的perl仍然是旧版。
要么你新版本未安装成功,要么未删掉旧版本。
就是系统未能识别出新版本。

stddef.h这个是你的这个软件或别的文件呢?开发包里边有这文件,但不是在这目录下边,应该是你编译的这个?
发表于 2023-9-12 00:02 | 显示全部楼层
有点晕,安装源里都没有的东西等于新编译,有点难。
mingw-w64-i686-dev
里边有stddef.h这文件,是不是?
您需要登录后才可以回帖 登录 | 要注册

本版积分规则

QQ|手机版|Archiver|veket官方网站论坛 ( 粤ICP备 11052856 )

GMT+8, 2024-5-7 07:12

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表