【问题标题】:make errors while installing Open Semantic Framework v1.0安装 Open Semantic Framework v1.0 时出错
【发布时间】:2017-07-12 12:12:27
【问题描述】:

我已完成StructWSF Installation GuideOpen Semantic Framework 的一部分)的第 5 步,并尝试安装 Virtuoso 6.1.6。 ./configure这一步是可以的,但是在运行sudo makesudo make check的时候,会出现很多错误。它看起来像一种错误,但我对此一无所知。

我使用的是 Ubuntu 14.04。有人有什么想法吗?

非常感谢。

vagrant@vagrant-ubuntu-trusty-64:/tmp/virtuoso-opensource-6.1.6$ sudo make check
Making check in .
make[1]: Entering directory `/tmp/virtuoso-opensource-6.1.6'
make[1]: Nothing to be done for `check-am'.
make[1]: Leaving directory `/tmp/virtuoso-opensource-6.1.6'
Making check in docsrc
make[1]: Entering directory `/tmp/virtuoso-opensource-6.1.6/docsrc'
Making check in chm
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/docsrc/chm'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/docsrc/chm'
Making check in docwiki
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/docsrc/docwiki'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/docsrc/docwiki'
Making check in html_virt
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/docsrc/html_virt'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/docsrc/html_virt'
Making check in images
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/docsrc/images'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/docsrc/images'
Making check in pdf
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/docsrc/pdf'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/docsrc/pdf'
Making check in releasenotes
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/docsrc/releasenotes'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/docsrc/releasenotes'
Making check in styleguide
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/docsrc/styleguide'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/docsrc/styleguide'
Making check in stylesheets
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/docsrc/stylesheets'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/docsrc/stylesheets'
Making check in xmlsource
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/docsrc/xmlsource'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/docsrc/xmlsource'
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/docsrc'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/docsrc'
make[1]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/docsrc'
Making check in libsrc
make[1]: Entering directory `/tmp/virtuoso-opensource-6.1.6/libsrc'
Making check in util
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/libsrc/util'
make  check-am
make[3]: Entering directory `/tmp/virtuoso-opensource-6.1.6/libsrc/util'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/libsrc/util'
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/libsrc/util'
Making check in zlib
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/libsrc/zlib'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/libsrc/zlib'
Making check in odbcsdk
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/libsrc/odbcsdk'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/libsrc/odbcsdk'
Making check in Dk
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/libsrc/Dk'
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/libsrc/Dk'
Making check in Thread
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/libsrc/Thread'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/libsrc/Thread'
Making check in langfunc
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/libsrc/langfunc'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/libsrc/langfunc'
Making check in Wi
make[2]: Entering directory `/tmp/virtuoso-opensource-6.1.6/libsrc/Wi'
make  check-am
make[3]: Entering directory `/tmp/virtuoso-opensource-6.1.6/libsrc/Wi'
/bin/bash ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../libsrc/Dk    -fno-st                                                                  rict-aliasing -O2  -Wall  -DNDEBUG -DPOINTER_64  -I/usr/include  -I/tmp/virtuoso-opensource-6.1.6/libs                                                                  rc/Xml.new  -DOPENSSL_NO_KRB5 -Dlinux -D_GNU_SOURCE -DFILE64 -D_LARGEFILE64_SOURCE   -I../../libsrc -I                                                                  ../../libsrc/Dk  -I. -I../../libsrc/langfunc -I../../libsrc/plugin -I../../libsrc/Tidy -I../../libsrc/                                                                  Xml.new -I../../libsrc/odbcsdk/include -DVAD -DDBP -DBIF_XPER -DOPSYS=\"Linux\" -DHOST=\"x86_64-unknow                                                                  n-linux-gnu\" -g -O2 -MT libwi_la-bif_crypto.lo -MD -MP -MF .deps/libwi_la-bif_crypto.Tpo -c -o libwi_                                                                  la-bif_crypto.lo `test -f 'bif_crypto.c' || echo './'`bif_crypto.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../libsrc/Dk -fno-strict-aliasing -O2 -Wall -DNDEBUG -                                                                  DPOINTER_64 -I/usr/include -I/tmp/virtuoso-opensource-6.1.6/libsrc/Xml.new -DOPENSSL_NO_KRB5 -Dlinux -                                                                  D_GNU_SOURCE -DFILE64 -D_LARGEFILE64_SOURCE -I../../libsrc -I../../libsrc/Dk -I. -I../../libsrc/langfu                                                                  nc -I../../libsrc/plugin -I../../libsrc/Tidy -I../../libsrc/Xml.new -I../../libsrc/odbcsdk/include -DV                                                                  AD -DDBP -DBIF_XPER -DOPSYS=\"Linux\" -DHOST=\"x86_64-unknown-linux-gnu\" -g -O2 -MT libwi_la-bif_cryp                                                                  to.lo -MD -MP -MF .deps/libwi_la-bif_crypto.Tpo -c bif_crypto.c  -fPIC -DPIC -o .libs/libwi_la-bif_cry                                                                  pto.o
In file included from bif_crypto.c:36:0:
xmlenc.h:315:7: error: unknown type name 'des_cblock'
       des_cblock k1;
       ^
xmlenc.h:316:7: error: unknown type name 'des_cblock'
       des_cblock k2;
       ^
xmlenc.h:317:7: error: unknown type name 'des_cblock'
       des_cblock k3;
       ^
xmlenc.h:319:7: error: unknown type name 'des_key_schedule'
       des_key_schedule ks1;/* key schedule */
       ^
xmlenc.h:320:7: error: unknown type name 'des_key_schedule'
       des_key_schedule ks2;/* key schedule (for ede) */
       ^
xmlenc.h:321:7: error: unknown type name 'des_key_schedule'
       des_key_schedule ks3;/* key schedule (for ede3) */
       ^
xmlenc.h:323:7: error: unknown type name 'des_cblock'
       des_cblock iv;
       ^
bif_crypto.c: In function 'box_hmac':
bif_crypto.c:184:12: error: storage size of 'ctx' isn't known
   HMAC_CTX ctx;
            ^
bif_crypto.c:190:3: warning: 'HMAC_Init' is deprecated (declared at /usr/include/openssl/hmac.h:28) [-                                                                  Wdeprecated-declarations]
   HMAC_Init (&ctx, key, box_length (key) - DV_STRINGP (key) ? 1 : 0, md);
   ^
bif_crypto.c:184:12: warning: unused variable 'ctx' [-Wunused-variable]
   HMAC_CTX ctx;
            ^
bif_crypto.c: In function 'asn1_parse_to_xml':
bif_crypto.c:251:7: warning: passing argument 1 of 'ASN1_get_object' from incompatible pointer type [e                                                                  nabled by default]
       j = ASN1_get_object (&p, &len, &tag, &xclass, length);
       ^
In file included from /usr/include/openssl/objects.h:916:0,
                 from /usr/include/openssl/evp.h:27,
                 from xmlenc.h:35,
                 from bif_crypto.c:36:
/usr/include/openssl/asn1.h:671:5: note: expected 'const unsigned char **' but argument is of type 'un                                                                  signed char **'
 int ASN1_get_object(const unsigned char **pp, long *plength, int *ptag,
     ^
bif_crypto.c:335:8: warning: passing argument 2 of 'd2i_ASN1_OBJECT' from incompatible pointer type [e                                                                  nabled by default]
        if (d2i_ASN1_OBJECT (&o, &opp, len + hl) != NULL)
        ^
In file included from /usr/include/openssl/objects.h:916:0,
                 from /usr/include/openssl/evp.h:27,
                 from xmlenc.h:35,
                 from bif_crypto.c:36:
/usr/include/openssl/asn1.h:530:14: note: expected 'const unsigned char **' but argument is of type 'u                                                                  nsigned char **'
 ASN1_OBJECT *d2i_ASN1_OBJECT(ASN1_OBJECT **a, const unsigned char **pp,
              ^
bif_crypto.c:351:8: warning: implicit declaration of function 'd2i_ASN1_BOOLEAN' [-Wimplicit-function-                                                                  declaration]
        ii = d2i_ASN1_BOOLEAN (NULL, &opp, len + hl);
        ^
bif_crypto.c:368:8: warning: passing argument 2 of 'd2i_ASN1_OCTET_STRING' from incompatible pointer t                                                                  ype [enabled by default]
        os = d2i_ASN1_OCTET_STRING (NULL, &opp, len + hl);
        ^
In file included from /usr/include/openssl/objects.h:916:0,
                 from /usr/include/openssl/evp.h:27,
                 from xmlenc.h:35,
                 from bif_crypto.c:36:
/usr/include/openssl/asn1.h:594:1: note: expected 'const unsigned char **' but argument is of type 'un                                                                  signed char **'
 DECLARE_ASN1_FUNCTIONS(ASN1_OCTET_STRING)
 ^
bif_crypto.c:418:5: warning: implicit declaration of function 'M_ASN1_OCTET_STRING_free' [-Wimplicit-f                                                                  unction-declaration]
     M_ASN1_OCTET_STRING_free (os);
     ^
bif_crypto.c:428:8: warning: passing argument 2 of 'd2i_ASN1_INTEGER' from incompatible pointer type [                                                                  enabled by default]
        bs = d2i_ASN1_INTEGER (NULL, &opp, len + hl);
        ^
In file included from /usr/include/openssl/objects.h:916:0,
                 from /usr/include/openssl/evp.h:27,
                 from xmlenc.h:35,
                 from bif_crypto.c:36:
/usr/include/openssl/asn1.h:569:1: note: expected 'const unsigned char **' but argument is of type 'un                                                                  signed char **'
 DECLARE_ASN1_FUNCTIONS(ASN1_INTEGER)
 ^
bif_crypto.c:451:8: warning: implicit declaration of function 'M_ASN1_INTEGER_free' [-Wimplicit-functi                                                                  on-declaration]
        M_ASN1_INTEGER_free (bs);
        ^
bif_crypto.c:459:8: warning: passing argument 2 of 'd2i_ASN1_ENUMERATED' from incompatible pointer typ                                                                  e [enabled by default]
        bs = d2i_ASN1_ENUMERATED (NULL, &opp, len + hl);
        ^
In file included from /usr/include/openssl/objects.h:916:0,
                 from /usr/include/openssl/evp.h:27,
                 from xmlenc.h:35,
                 from bif_crypto.c:36:
/usr/include/openssl/asn1.h:575:1: note: expected 'const unsigned char **' but argument is of type 'un                                                                  signed char **'
 DECLARE_ASN1_FUNCTIONS(ASN1_ENUMERATED)
 ^
bif_crypto.c:482:8: warning: implicit declaration of function 'M_ASN1_ENUMERATED_free' [-Wimplicit-fun                                                                  ction-declaration]
        M_ASN1_ENUMERATED_free (bs);
        ^
bif_crypto.c: In function 'bif_smime_sign':
bif_crypto.c:857:21: error: dereferencing pointer to incomplete type
   if (store && store->objs)
                     ^
bif_crypto.c:859:52: error: dereferencing pointer to incomplete type
       for (inx = 0; inx < sk_X509_OBJECT_num (store->objs); inx++)
                                                    ^
bif_crypto.c:861:50: error: dereferencing pointer to incomplete type
    X509_OBJECT *obj = sk_X509_OBJECT_value (store->objs, inx);
                                                  ^
bif_crypto.c:862:11: error: dereferencing pointer to incomplete type
    if (obj->type == X509_LU_X509)
           ^
bif_crypto.c:863:40: error: dereferencing pointer to incomplete type
      sk_X509_push (certs, X509_dup (obj->data.x509));
                                        ^
bif_crypto.c: In function 'bif_smime_encrypt':
bif_crypto.c:938:21: error: dereferencing pointer to incomplete type
   if (store && store->objs)
                     ^
bif_crypto.c:940:52: error: dereferencing pointer to incomplete type
       for (inx = 0; inx < sk_X509_OBJECT_num (store->objs); inx++)
                                                    ^
bif_crypto.c:942:50: error: dereferencing pointer to incomplete type
    X509_OBJECT *obj = sk_X509_OBJECT_value (store->objs, inx);
                                                  ^
bif_crypto.c:943:11: error: dereferencing pointer to incomplete type
    if (obj->type == X509_LU_X509)
           ^
bif_crypto.c:944:40: error: dereferencing pointer to incomplete type
      sk_X509_push (certs, X509_dup (obj->data.x509));
                                        ^
bif_crypto.c: In function 'x509_certificate_verify_cb':
bif_crypto.c:1114:18: error: dereferencing pointer to incomplete type
       switch (ctx->error)
                  ^
bif_crypto.c: In function 'bif_x509_certificate_verify':
bif_crypto.c:1211:51: error: dereferencing pointer to incomplete type
       err_str = X509_verify_cert_error_string (csc->error);
                                                   ^
bif_crypto.c: In function 'BN_box':
bif_crypto.c:1238:37: error: dereferencing pointer to incomplete type
     buf = box_num ((unsigned long) x->d[0]);
                                     ^
bif_crypto.c: In function 'bif_get_certificate_info':
bif_crypto.c:1422:41: error: dereferencing pointer to incomplete type
  STACK_OF (X509_EXTENSION) * exts = cert->cert_info->extensions;
bif_crypto.c:1434:5: warning: implicit declaration of function 'M_ASN1_OCTET_STRING_print' [-Wimplicit                                                                  -function-declaration]
     M_ASN1_OCTET_STRING_print (mem, ex->value);
     ^
bif_crypto.c:1434:39: error: dereferencing pointer to incomplete type
     M_ASN1_OCTET_STRING_print (mem, ex->value);
                                       ^
bif_crypto.c:1461:11: error: dereferencing pointer to incomplete type
      if (k->type == EVP_PKEY_RSA)
           ^
bif_crypto.c:1463:13: error: dereferencing pointer to incomplete type
   RSA *x = k->pkey.rsa;
             ^
bif_crypto.c:1464:65: error: dereferencing pointer to incomplete type
   ret = list (3, box_dv_short_string ("RSAPublicKey"), BN_box (x->e), BN_box (x->n));
                                                                 ^
bif_crypto.c:1464:80: error: dereferencing pointer to incomplete type
   ret = list (3, box_dv_short_string ("RSAPublicKey"), BN_box (x->e), BN_box (x->n));
                                                                                ^
bif_crypto.c:1469:11: error: dereferencing pointer to incomplete type
      if (k->type == EVP_PKEY_DSA)
           ^
bif_crypto.c:1471:13: error: dereferencing pointer to incomplete type
   DSA *x = k->pkey.dsa;
             ^
bif_crypto.c:1472:65: error: dereferencing pointer to incomplete type
   ret = list (2, box_dv_short_string ("DSAPublicKey"), BN_box (x->pub_key));
                                                                 ^
bif_crypto.c:1491:61: error: dereferencing pointer to incomplete type
  for (i = 0; NULL != subj && i < sk_X509_NAME_ENTRY_num(subj->entries); i++)
                                                             ^
bif_crypto.c:1493:40: error: dereferencing pointer to incomplete type
      ne = sk_X509_NAME_ENTRY_value(subj->entries,i);
                                        ^
bif_crypto.c:1494:25: error: dereferencing pointer to incomplete type
      n = OBJ_obj2nid (ne->object);
                         ^
bif_crypto.c:1495:34: warning: assignment discards 'const' qualifier from pointer target type [enabled                                                                   by default]
      if ((n == NID_undef) || ((s = OBJ_nid2sn (n)) == NULL))
                                  ^
bif_crypto.c:1497:47: error: dereferencing pointer to incomplete type
   i2t_ASN1_OBJECT (buffer, sizeof (buffer), ne->object);
                                               ^
bif_crypto.c:1508:36: error: dereferencing pointer to incomplete type
      ASN1_STRING_print (mem, ne_ret->value);
                                    ^
bif_crypto.c:1529:61: error: dereferencing pointer to incomplete type
  for (i = 0; NULL != subj && i < sk_X509_NAME_ENTRY_num(subj->entries); i++)
                                                             ^
bif_crypto.c:1532:40: error: dereferencing pointer to incomplete type
      ne = sk_X509_NAME_ENTRY_value(subj->entries,i);
                                        ^
bif_crypto.c:1533:25: error: dereferencing pointer to incomplete type
      n = OBJ_obj2nid (ne->object);
                         ^
bif_crypto.c:1534:34: warning: assignment discards 'const' qualifier from pointer target type [enabled                                                                   by default]
      if ((n == NID_undef) || ((s = OBJ_nid2sn (n)) == NULL))
                                  ^
bif_crypto.c:1536:47: error: dereferencing pointer to incomplete type
   i2t_ASN1_OBJECT (buffer, sizeof (buffer), ne->object);
                                               ^
bif_crypto.c:1539:32: error: dereferencing pointer to incomplete type
      ASN1_STRING_print (mem, ne->value);
                                ^
make[3]: *** [libwi_la-bif_crypto.lo] Error 1
make[3]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/libsrc/Wi'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/libsrc/Wi'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/tmp/virtuoso-opensource-6.1.6/libsrc'
make: *** [check-recursive] Error 1

【问题讨论】:

    标签: php makefile ubuntu-14.04 virtuoso


    【解决方案1】:

    我会先将 Virtuoso 更新/升级到更新的版本。 Version 7.2.4.2 或更高版本被认为是最新的并强烈推荐; Version 6.1.8 是最后一个 v6 和最后一个 32 位(v7 仅是 64 位)。

    无论哪种方式,您都可以考虑关注official Virtuoso instructions,尤其是包括安装build dependencies,而不是非常旧的(最后更新于2012-12-17!)第三方指南。

    (确实,既然您使用的是当前的 Ubuntu,为什么您甚至不使用 current OSF Installer?)

    (ObDisclaimer:OpenLink Software 产生 Virtuoso,并雇用我。)

    【讨论】:

    • 感谢您的回答!我什至没有注意到 6.16 版本是 32 位的!本来打算用OSF安装程序来安装OSF(包括virtuoso),但是最后一步加载本体时总是出现一些错误,然后我在想为什么不尝试一步一步安装,这就是为什么我去上面的 osf 说明。现在我将尝试您所说的 virtuoso v7,它适用于 64 位,看看它是否有效。再次感谢!
    • 为了更清楚,v6 可以构建为 32 位或 64 位。 v7 不能构建为 32 位。另请注意——您一直在使用 OSF v1 的手动构建步骤,而当前的 OSF 是 v3。而且……您在加载本体时遇到的问题似乎不太可能是由构建/安装问题引起的。看来您可能正在夷平并重建房屋,因为沙发无法穿过门。
    • 嗨 TallTed,感谢您澄清这一点,我发现这确实与安装问题无关,这可能是因为我使用的 php 版本,我使用的是 php5.6 而 OSF 安装程序(按照这个程序:github.com/structureddynamics/Open-Semantic-Framework-Installer)配置php5的.ini文件,它们有不同的.ini文件。而当我注意到这个问题时,我用php5更改了系统配置,安装成功!
    • 您所描述的新旧软件的混合几乎肯定会导致其他问题。我强烈建议您组装一套类似旧版本的套件,最好(接近)当前!
    • 是的,确实如此。我将在这里给出答案来结束这个问题。感谢您的帮助!
    【解决方案2】:

    结束这个问题:

    这个问题可能与我的环境是Ubuntu14.04、apache2、php5.6、mysql5时的php版本不符合osf installer 要求有关。

    但是,这个安装程序只考虑了php5(.ini文件位置与php5.6不同,我通过检查安装php文件知道这一点),这就是为什么有些软件不能正常工作,而将 php5.6 降级为 php5 对我来说效果很好。

    现在我的环境变成了Ubuntu14.04、apache2、php5、mysql5,安装正常。

    希望这可以帮助某人。

    【讨论】:

      猜你喜欢
      • 2011-08-11
      • 1970-01-01
      • 2012-02-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-10
      • 2014-09-13
      • 1970-01-01
      相关资源
      最近更新 更多