在 AIX 6.1 64 位上编译 PCRE 8.32

2024-02-03

我正在尝试使用以下命令配置和制作 PCRE

./configure CC="gcc" CFLAGS="-maix64" CXX="gcc" CXXFLAGS="-maix64" LDFLAGS="-L/usr/ccs/bin -maix64" --disable-cpp --prefix=/usr/local/share/bld/pcre

配置工作正常: PCRE-8.32配置总结:

Install prefix .................. : /usr/local/share/bld/pcre
C preprocessor .................. : gcc -maix64 -E
C compiler ...................... : gcc -maix64
C++ preprocessor ................ : gcc -maix64 -E
C++ compiler .................... : gcc -maix64
Linker .......................... : /usr/bin/ld
C preprocessor flags ............ :
C compiler flags ................ : -O2
C++ compiler flags .............. : -maix64
Linker flags .................... :
Extra libraries ................. :

Build 8 bit pcre library ........ : yes
Build 16 bit pcre library ....... : no
Build 32 bit pcre library ....... : no
Build C++ library ............... : no
Enable JIT compiling support .... : no
Enable UTF-8/16/32 support ...... : no
Unicode properties .............. : no
Newline char/sequence ........... : lf
\R matches only ANYCRLF ......... : no
EBCDIC coding ................... : no
EBCDIC code for NL .............. : n/a
Rebuild char tables ............. : no
Use stack recursion ............. : yes
POSIX mem threshold ............. : 10
Internal link size .............. : 2
Match limit ..................... : 10000000
Match limit recursion ........... : MATCH_LIMIT
Build shared libs ............... : yes
Build static libs ............... : no
Use JIT in pcregrep ............. : no
Buffer size for pcregrep ........ : 20480
Link pcregrep with libz ......... : no
Link pcregrep with libbz2 ....... : no
Link pcretest with libedit ...... : no
Link pcretest with libreadline .. : no
Valgrind support ................ : no
Code coverage ................... : no

在执行 make 时出现以下错误:

bash-3.00# make
        rm -f pcre_chartables.c    
        ln -s ./pcre_chartables.c.dist pcre_chartables.c
     make  all-am
  CC     libpcre_la-pcre_byte_order.lo
  CC     libpcre_la-pcre_compile.lo
  CC     libpcre_la-pcre_config.lo
  CC     libpcre_la-pcre_dfa_exec.lo
  CC     libpcre_la-pcre_exec.lo
  CC     libpcre_la-pcre_fullinfo.lo
  CC     libpcre_la-pcre_get.lo
  CC     libpcre_la-pcre_globals.lo
  CC     libpcre_la-pcre_jit_compile.lo
  CC     libpcre_la-pcre_maketables.lo
  CC     libpcre_la-pcre_newline.lo
  CC     libpcre_la-pcre_ord2utf8.lo
  CC     libpcre_la-pcre_refcount.lo
  CC     libpcre_la-pcre_string_utils.lo
  CC     libpcre_la-pcre_study.lo
  CC     libpcre_la-pcre_tables.lo
  CC     libpcre_la-pcre_ucd.lo
  CC     libpcre_la-pcre_valid_utf8.lo
  CC     libpcre_la-pcre_version.lo
  CC     libpcre_la-pcre_xclass.lo
  CC     libpcre_la-pcre_chartables.lo
  CCLD   libpcre.la

0654-210 .libs/libpcre_la-pcre_byte_order.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_compile.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_config.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_dfa_exec.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_exec.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_fullinfo.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_get.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_globals.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_jit_compile.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_maketables.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_newline.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_ord2utf8.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_refcount.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_string_utils.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_study.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_tables.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_ucd.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_valid_utf8.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_version.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_xclass.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

0654-210 .libs/libpcre_la-pcre_chartables.o is not valid in the current object file mode.

        Use the -X option to specify the desired object mode.

ar: 0707-126 .libs/libpcre.so.1 is not valid with the current object file mode.

        Use the -X option to specify the desired object mode.

make: 1254-004 The error code from the last command is 1.

Stop.

make: 1254-004 The error code from the last command is 2

我尝试过:使用OBJECT_MODE=64, q64但在这种情况下,即使配置失败。 任何建议表示赞赏。


使用以下命令解决了它:

./configure CC="gcc" CFLAGS="-maix64"  CXX="g++" CXXFLAGS="-maix64" NM="nm -X64" \
    AR="ar -X64" --disable-cpp --prefix=/usr/local/share/bld/pcre
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 AIX 6.1 64 位上编译 PCRE 8.32 的相关文章

  • 用于匹配化学式的严格正则表达式

    在使用 Perl 处理大型文本化学数据库的过程中 我遇到了使用正则表达式来匹配化学公式的问题 我见过these two之前的主题 但建议的答案对于我的要求来说太宽松了 具体来说 我的 诚然有限的 研究使我发现这个帖子它给出了当前接受的化学符
  • 替换模式内所有出现的地方

    我有一个像这样的字符串 some text other text and some other text this should not be replaced but this should 我希望它成为 some text other
  • PHP mb_ereg_replace 未替换,而 preg_replace 按预期工作

    我正在尝试将字符串中所有非单词字符替换为空字符串 除了空格 并将所有多个空格放在一起作为一个空格 以下代码执行此操作 cleanedString preg replace w name cleanedString preg replace
  • 为什么在 stringr/ICU 和 Perl 中,行尾 (\\b) 不被识别为字边界

    Using stringr我试图检测一个 在字符串末尾添加符号 如下所示 str detect my text b FALSE 为什么这不起作用 它在以下情况下工作 str detect my text a a b TRUE letter
  • 在 PHP 中使用正则表达式找出子域

    抱歉 如果这个挑战太小 不适合作为堆栈溢出问题 但我对正则表达式有点陌生 我的问题是 对于下面的所有示例返回字符串 token 的正则表达式是什么 token domain com token domain com token domain
  • PHP中类似smarty的字符串的参数和值的解析

    我正在尝试创建类似 smarty 的解析器 对于非常小的代码部分 并且不想实现巨大的类似 smarty 的解析器 我想出的是 a zA Z0 9 v a zA Z0 9 On https regex101 com r l5FI5f 2 看起
  • 文字分隔符( \Q \E 块内的分隔符)

    我一直在尝试制作一些基于的功能RegEx他们中的大多数人都使用 Q and E作为一些RegEx pattern是用户输入 所以 假设我们正在使用delimiter 并想将其与 该函数将在以下行中构造一些东西 Q E 我不知道为什么 Q E
  • 部署使用 PCRE 库的 C 应用程序

    我编写了一个使用 PCRE 库的 C 应用程序 一切都在我自己的电脑上运行 但是 当我将二进制文件复制到另一台计算机并运行它时 会出现以下错误 libexec ld elf so 1 未找到 myapp 所需的共享对象 libpcre so
  • 什么时候a>a为真?

    是的 我想我真的是在做梦 我在 AIX 机器上编译并运行了以下代码 AIX 3 5 PowerPC POWER5 processor type IBM XL C C for AIX V10 1 Version 10 01 0000 0003
  • 正则表达式 - 从书名中提取卷号和章节号

    Hey 我正在尝试将一些遗留数据导入到一个全新的系统中 几乎完成了 但是有一个很大的问题 假设这些数据 Blabla Vol 1 chapter 2 ABCD in the era of XYZ volume 2 First Chapter
  • Python 中的 Perl 兼容正则表达式 (PCRE)

    我必须在 Python 中解析一些基于 PCRE 的字符串 但我不知道该怎么做 我想要解析的字符串如下所示 match mysql m 0 0 0 n 4 w 0 0 s p MySQL i 1 在这个例子中 我必须获得这些不同的项目 m
  • 使用 PCRE 支持重建 uwsgi

    运行 uwsgi 时 我收到以下消息 no internal routing support rebuild with pcre support 我已经使用以下命令安装了 PCRE 我认为 sudo apt get install libp
  • 如何将重音字符与 PHP preg 匹配?

    我想让我的用户不仅可以选择填写字母和数字 还可以选择 特殊 字母 例如 等 但是 我不希望他们能够使用符号如 等 有没有办法编写正则表达式来完成此任务 最好不要指定每个特殊字母 我现在有 reg w 你可以使用Unicode 字符属性 ht
  • 执行正则表达式替换 Perl

    假设我有IP10 23 233 34我想简单地交换233 for 234 第一个 第二个和最后一个八位字节未知 第三个八位位组是233 or 234 我想要进行替换 使其与 IP 子项相匹配 并保留其他所有内容 同时仍然切换最后一个八位字节
  • R-lang / 如何使用 R 进行正则表达式 (Perl) 提取

    我使用 javascript 的正则表达式测试器得出以下 3 个正则表达式案例 从文本中提取不同类型的 URL 我想在 R 中使用这些正则表达式 regxi 来满足以下条件 http 网址 https www s 比特利网址 https b
  • 通用语言对 PCRE(Perl 兼容正则表达式)有哪些支持?

    我对 PCRE Perl 兼容正则表达式 的强大功能很感兴趣 并且想知道它们是否有可能成为所有主要语言中事实上的方法 我对 Java 感兴趣 如果有必要 我准备使用图书馆 我也无法在 SO 中找到一个很好的页面来描述 PCRE 的优缺点 因
  • 正则表达式捕获可选标记后的所有内容

    我的字段包含以下可能格式的数据 每行都有不同的可能性 AAA Something Here AAA Something Here D Something Here 请注意 第一组字母 AAA 的长度可以不同 我试图捕获的是使用 PCRE 的
  • 如何使用 vi 编辑器在 KornShell 命令行中自动完成

    在 KornShell ksh 上AIX UNIX 版本 5 3将编辑器模式设置为 vi 使用 set o vi 在 shell 命令行中按什么键可以自动完成文件或目录名 ESC 至少在 AIX4 2 上工作得很好 我注意到的一件事是它只自
  • unix命令是什么来查看磁盘空间有多少以及剩余多少?

    我正在寻找相当于在 Windows 中右键单击驱动器并查看已用磁盘空间和剩余信息的功能 寻找命令du 磁盘使用情况 和df 无盘
  • libgcc.a 和 libgcc_s.a 之间的区别?

    我们已经安装了 GCC 和libgcc在 AIX 6 1 上使用 RPM 文件 我想知道的是为什么 libgcc s a 没有在以下文件夹下创建 opt freeware lib gcc powerpc ibm aix6 1 0 0 4 2

随机推荐