- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试按照production start说明安装Canvas LMS。在 bundle 安装时,它在Thrift安装上失败。我在Mac系统中的docker上使用Ubuntu 16.04。一切工作正常,但是此错误使我无法启动系统。请帮我!
Installing thrift 0.8.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/canvas/vendor/bundle/ruby/2.3.0/gems/thrift-0.8.0/ext
/usr/bin/ruby2.3 -r ./siteconf20160802-8582-f93j3i.rb extconf.rb --with-cppflags=-D_FORTIFY_SOURCE=0
checking for strlcpy() in string.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
/usr/lib/ruby/2.3.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/2.3.0/mkmf.rb:541:in `try_link0'
from /usr/lib/ruby/2.3.0/mkmf.rb:556:in `try_link'
from /usr/lib/ruby/2.3.0/mkmf.rb:765:in `try_func'
from /usr/lib/ruby/2.3.0/mkmf.rb:1051:in `block in have_func'
from /usr/lib/ruby/2.3.0/mkmf.rb:942:in `block in checking_for'
from /usr/lib/ruby/2.3.0/mkmf.rb:350:in `block (2 levels) in postpone'
from /usr/lib/ruby/2.3.0/mkmf.rb:320:in `open'
from /usr/lib/ruby/2.3.0/mkmf.rb:350:in `block in postpone'
from /usr/lib/ruby/2.3.0/mkmf.rb:320:in `open'
from /usr/lib/ruby/2.3.0/mkmf.rb:346:in `postpone'
from /usr/lib/ruby/2.3.0/mkmf.rb:941:in `checking_for'
from /usr/lib/ruby/2.3.0/mkmf.rb:1050:in `have_func'
from extconf.rb:27:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/var/canvas/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/thrift-0.8.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /var/canvas/vendor/bundle/ruby/2.3.0/gems/thrift-0.8.0 for inspection.
Results logged to /var/canvas/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/thrift-0.8.0/gem_make.out
mkmf.log
的输出是,
"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.3.0 -I/usr/include/ruby-2.3.0/ruby/backward -I/usr/include/ruby-2.3.0 -I. -D_FORTIFY_SOURCE=0 -g -O2 -Wall -Werror conftest.c -L. -L/usr/lib/x86_64-linux-\
gnu -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.3 -lpthread -lgmp -ldl -lcrypt -lm -lc"
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
cc1: all warnings being treated as errors
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
最佳答案
尝试这个:
gem install thrift -v '0.8.0' -- --with-cppflags='-D_FORTIFY_SOURCE=0'
关于ruby - Canvas LMS安装因节俭错误而失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38721186/
我这辈子都无法成功运行“gem install thrift”,在构建 gem 的 native 扩展时失败了;这是输出: (acib708) ~ -> gem install thrift Buil
关闭。这个问题需要更多 focused .它目前不接受答案。 想改进这个问题?更新问题,使其仅关注一个问题 editing this post . 4年前关闭。 Improve this questi
我正在评估 thrift 作为 rpc 框架。我希望能够使用 thrift 执行发布/订阅逻辑,并且想知道如何做到这一点。 一些不同的答案可能会有所帮助: 有没有规范的方式来发布/订阅节俭? 有没有办
如何在 Thrift 中声明接口(interface)?我的意思是我有接口(interface) IClient,我将它用作服务器中登录函数的参数: public interface IServer
我是 thrift apache 的新手。我正在使用 API edenremote。当 thrift 调用函数 readMessageBegin 时,它进入循环,我没有收到任何响应,请求正在进行中 请
在thrift IDL中,服务响应也可以是list或map吗? 因为,通常我看到它是一些结构或一些原始类型,如 string、double 等。 另外,我可以验证的来源是什么?还请注明出处。 最佳答案
如果我需要将数据(而不是插入) append 到特定的 super 列中,我该怎么办? 例如: 考虑下面描述的现有记录 Kespace : test columFamily: testColum Su
RELATED QUESTION: Can I directly serialize to a file using PHP's thrift library? 我必须使用apache thrift来
我想保护 thrift 服务器(只是加密,并将使用 acl 进行简单的身份验证),发现这个:http://architects.dzone.com/articles/how-secure-and-ap
我制作了一个像这样的简单的节俭文件: thrifttest.thrift namespace cpp thrifttest namespace d thrifttest namespace java
我正在开发一个微服务系统,该系统是在 Scala 中以 Finagle 和 Thrift 作为平台实现的。 由于有一些服务已经有一段时间没有人接触了,我需要查明它们是否已经被使用(或者更确切地说,哪些
我的机器上安装了 thrift(Ubuntu 12.04)。我使用的 thrift 版本是 0.9.0。我尝试为 thrift 接口(interface)文件生成 python 文件,如下所示 thr
根据 the thread about Strings and security in java , String 类型在用于密码属性时可能很危险,主要是因为字符串是不可变的(可以在 VM 镜像中找到
我有一些带有 perl-server 和 php-client 的 Apache Thrift (v.0.6.1) 测试应用程序。 我无法解释的行为:如果我们使用无效参数调用服务器方法,我们会在服务器
感谢 Cloudera 发行版,我在本地机器上运行了一个 HBase master/datanode + Thrift 服务器,并且可以编写和测试 HBase 客户端程序并使用它,没问题。 但是,我现
我在同一个 thrift 文件中定义了 2 个服务并共享一个端口。我可以使用 serviceA 中的任何方法没问题,但每当我尝试调用 ServiceB 的任何方法时,我都会遇到异常。这是我的节俭文件
我读过 this和 this .但是,我的情况不同。我不需要服务器上的多路复用服务,也不需要与服务器的多个连接。 背景: 对于我的大数据项目,我需要计算给定大数据的核心集。Coreset 是大数据的一
关于数据类型,我坚持使用 Thrift。 现在,当我将 Integer 值映射到 thrift 生成的 bean 时,我在 idl 定义中使用了 i32 类型。 class MyBean { In
我正在使用 Cassandra 和 Thrift 库做一些工作。我意识到这些是非常早期的库,并且(毫无疑问)会在某个时候发生变化。 我一直在使用以下 link寻求帮助设置我的 C# 代码以写入和读取我
在 IDL 文件中,我有 struct CaseInfo { 1: CaseID = '', 2: EvID = 'foobar', } struct Case { 1: Ca
我是一名优秀的程序员,十分优秀!