我正在尝试按照我的应用程序中的建议安装捆绑包.但我得到以下错误
$sudo bundle install --local
/usr/local/lib/site_ruby/1.8/rubygems/requirement.rb:109:in `hash': bignum too big to convert into `long' (RangeError)
from /usr/local/lib/site_ruby/1.8/rubygems/requirement.rb:109:in `hash'
from /usr/local/lib/site_ruby/1.8/rubygems/specification.rb:675:in `hash'
from /usr/lib/ruby/1.8/open-uri.rb:32:in `inject'
from /usr/local/lib/site_ruby/1.8/rubygems/specification.rb:674:in `each'
from /usr/local/lib/site_ruby/1.8/rubygems/specification.rb:674:in `inject'
from /usr/local/lib/site_ruby/1.8/rubygems/specification.rb:674:in `hash'
from /usr/lib/ruby/1.8/tsort.rb:181:in `include?'
from /usr/lib/ruby/1.8/tsort.rb:181:in `each_strongly_connected_component'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:124:in `tsort_each_node'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:124:in `each'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:124:in `tsort_each_node'
from /usr/lib/ruby/1.8/tsort.rb:180:in `each_strongly_connected_component'
from /usr/lib/ruby/1.8/tsort.rb:148:in `tsort_each'
from /usr/lib/ruby/1.8/tsort.rb:135:in `tsort'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:107:in `sorted'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:12:in `each'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:44:in `run'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:8:in `install'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/cli.rb:221:in `install'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `send'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `run'
from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/invocation.rb:118:in …Run Code Online (Sandbox Code Playgroud) 我的项目有两个捆绑,让我们说Bundle A和Bundle B.
现在Bundle A需要从中访问一个类Bundle B.
我怎样才能做到这一点?
我想通过xcode目标从我的静态库的资源文件创建一个Resource Bundle.我看到Three20有一个需要导入的.bundle文件.
我怎样才能做到这一点?
我一直在努力学习如何做我的第一个Facebook应用程序.developers.facebook.com/apps/407656052586647/summary?web_hosting=0上的说明询问我的ios包ID.
我看过这个网站和Bundle ID Suffix?它是什么?,讨论它(假设bundle id和bundle后缀id相同),听起来它与apple id相关联.我只是开发应用程序并且还没有苹果ID,假设它与将应用程序分发给itunes有关.首先是鸡肉还是鸡蛋?我甚至都没有编写应用程序,所以我怎么能拥有itunes的id?我看到这个Bundle ID for App提交iOS,但我绝对不准备将它提交给itunes.
我在这个网站的某处读到我需要去xcode - > resource-> settings bundle来为项目创建一个包.我会在Finder窗口中将项目的每个文件放在包中吗?
此外,hackbook示例,在http://thinkdiff.net/facebook/how-to-develop-facebook-application-for-iphone/comment-page-1/#comment-293743中提到,在步骤3中(它的调用它是demoApp,但我找到的名字是Hackbook,但它到目前为止仍然是一个例子)指的是设置kAppId.他们创建应用ID的链接不起作用.它会与我在上面这个问题的第一段中的developers.facebook.com上做的一样吗?这个app app会不会是我在developers.facebook.com/apps/407656052586647/summary?save=1上成功完成的任务?我看到他们在那里列出了应用程序ID和应用程序密码,但它没有用,因为我没有ios软件包ID?bundle id是否是我的包名(拖动xcode项目的内容)?
感谢您提供的任何帮助......密歇根州
我正在使用片段并遇到以下问题:
来自fragment:
Bundle bundle = new Bundle();
bundle.putInt("myData", x);
Intent in=new Intent(getActivity(),B.class);
in.putExtra("xy", bundle);
startActivity(in);
Run Code Online (Sandbox Code Playgroud)
在Activity:
Intent in=getIntent();
Bundle bundle = getIntent().getExtras();
int value = bundle.getInt("myData");
Log.v("in mainactivity",""+value);
Run Code Online (Sandbox Code Playgroud)
这里得到Null值.我希望你能理解这个问题.
我尝试在我的Mac上捆绑我的Rails应用程序.在家里它工作正常,我已经设法解决它自己以前,但这次无论我尝试什么,似乎没有什么似乎正在努力解决它.
运行bundle/bundle install时收到的错误如下:
安装pg(0.17.0)Gem :: Installer :: ExtensionBuildError:错误:无法构建gem原生扩展.
Run Code Online (Sandbox Code Playgroud)/Users/notrab/.rbenv/versions/2.0.0-p0/bin/ruby extconf.rb检查pg_config ...否否pg_config ...尝试无论如何.如果构建失败,请再次尝试使用--with -pg-config =/path/to/pg_config检查libpq-fe.h ...否找不到'libpq-fe.h header *extconf.rb失败* 由于某些原因无法创建Makefile,可能缺少必要的库和/或标头.检查mkmf.log文件以获取更多详细信息.您可能需要配置选项.
提供的配置选项: - 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 =/Users/notrab/.rbenv/versions/2.0.0-p0/bin/ruby --with-pg --without-pg --with-pg-config --without-pg-config --with-pg_config --without-pg_config --with-pg-dir --without-pg-dir --with-pg-include --without-pg-include = $ {pg-dir}/include --with -pg-lib --without-pg-lib = $ {pg-dir} /
Gem文件将保留在/Users/notrab/Sites/Integrity/vendor/bundle/gems/pg-0.17.0中进行检查.
结果记录到/Users/notrab/Sites/Integrity/vendor/bundle/gems/pg-0.17.0/ext/gem_make.out
安装pg(0.17.0)时发生错误,Bundler无法继续.
gem install pg -v '0.17.0'在捆绑之前确保成功.
我显然试过跑步
gem install pg -v'0.17.0'并且它说它成功但是再次捆绑显示同样的错误.
我也试过跑步
gem install pg - --with-pg-config …
我需要检查在启动时是否在我的RCP应用程序中加载了某些捆绑软件。我知道有一个“主机OSGi控制台”,它显示Eclipse IDE中所有插件的状态,但是我对此并不感兴趣。
我执行了以下步骤来获取应用程序本身的OSGi控制台:
添加了插件“ org.eclipse.equinox.console”
创建了OSGi框架配置:运行配置-> OSGi框架-> MyNewConfiguration
运行配置
当我验证插件时,它会显示“缺少约束:导入包org.eclipse.felix.service.command”。我在哪里可以找到这个捆绑包?
这是打开自定义RCP应用程序的OSGi控制台的正确方法吗?我无法将应用程序导出为产品,因此无法在Eclpse IDE之外运行它。
我在源文件夹中的ecmascript 2015模块模式后面有一堆打字稿文件.我有tsconfig设置将转换后的文件输出到lib文件夹.这很好用.但有没有办法将它们捆绑成一个可以在浏览器中使用的sigle文件?我希望我的模块可以通过npm获得,也可以作为脚本标签.
有关详细信息,请参阅我的虚拟github项目.尝试了gulp-typescript,concat,uglify方式,但是徒劳无功.
我很难尝试宝石安装pg -v'0.18.4',这是我的ruby on rails"捆绑安装"应用程序所需要的,该应用程序是在3年前开发的.
sudo gem install pg -v'0.18.4'
它抱怨如下:
conftest.c:15:13: error: conflicting types for 'PQconnectdb'
extern void PQconnectdb();
Run Code Online (Sandbox Code Playgroud)
完整执行错误https://gist.github.com/axilaris/f521685f4e5c7a8e5653bf672af1efa7
mkmf.log - https://gist.github.com/axilaris/2e4cf2729b34d751c1ce76b046a0b21c
我的环境如下:
Postgres 9.4.0.1
MacOs Sierra High 10.13.1
$ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [universal.x86_64-darwin17]
$ rails -v
Rails 5.1.4
Run Code Online (Sandbox Code Playgroud)
我试图安装brew install libpqxx它不起作用
以下是一些相关的stackoverflow:
我想确保安装 - sudo gem install pg -v'0.18.4'.从生产开始,它也应该运行.我不想破坏生产ubuntu服务器中运行的任何东西.目前针对这个问题,我正在我的mac上设置环境以进行开发,以尝试进行代码修复.
仅供参考,我试过2个mac.一个升级到sierra high的原始开发mac,另一个是新安装的sierra high的新格式化mac.
我刚刚克隆了一个新的仓库并尝试运行bundle install但是遇到了错误
Fetching gem metadata from https://abcderepos.net/api/gems/rubygems/...........
Your bundle is locked to parser (2.5.0.4), but that version could not be found in any of the sources listed in your Gemfile. If
you haven't changed sources, that means the author of parser (2.5.0.4) has removed it. You'll need to update your bundle to a
different version of parser (2.5.0.4) that hasn't been removed in order to install.
Run Code Online (Sandbox Code Playgroud)
知道我为什么会收到这个错误吗?