尝试使用sudo gem install travis -v 1.8.9 --no-rdoc --no-ri
安装travis cli会生成以下错误日志:
"pkg-config --exists libffi"
package configuration for libffi is not found
"xcrun clang -o conftest -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18 -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/backward -I/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_ATOMIC_BUILTINS conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib -L. -lruby.2.3.0 -lpthread -ldl -lobjc "
In file included from conftest.c:1:
In file included from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h:33:
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found
#include "ruby/config.h"
^~~~~~~~~~~~~~~
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
似乎缺少一些依赖项。如何正确安装它们?我目前正在使用macos mojave 10.14
答案 0 :(得分:6)
results = tf.estimator.train_and_evaluate(m, train_spec, eval_spec)
为我工作。我找到了here
答案 1 :(得分:0)
我无法使用xcode命令行开发人员工具内置的ruby安装travis,但是先使用<script src="funciones.js"></script>
<div id="productModal" class="modal fade">
<div class="modal-dialog">
<form method="post" id="product_form">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×
</button>
<h4 class="modal-title"></h4>
</div>
<div class="modal-body">
<label>Matricula</label>
<input type="text" name="id_matricula" id="id_matricula" class="form-control" />
<label>Nombre</label>
<input type="text" name="nomAlu" id="nomAlu" class="form-control" />
<label>Apellido Paterno</label>
<input type="text" name="apellidoP" id="apellidoP" class="form-control" />
<label>Apellido Materno</label>
<input type="text" name="apellidoM" id="apellidoM" class="form-control" />
<label>Selecciona Carrera</label>
<select name="id_carrera" id="id_carrera" class="form-control">
<option value="">Carrera</option>
<?php echo $output; ?>
</select>
<br />
</div>
然后再安装brew install ruby
安装ruby会成功完成travis安装。
注意:您可能需要将travis gem添加到系统路径。