我正试图在我的Windows机上安装 gem,但它一直失败:
C:\Users\William>gem install dandelion --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing dandelion:
ERROR: Failed to build gem native extension.
C:/Ruby22/bin/ruby.exe -r
在本机C++中,我想使用libgit2 C-API,而我恰好使用的是Visual Studio 2013。
回想一下,微软从2010/2012年开始使用libgit2在Visual studio中提供内部git支持,如下文所述:
我认为有两种选择:
(1)下载、构建和使用libgit2 for Visual Studio 2013如下所述:
(2)针对libgit2 C-API库的代码捆绑/安装在Visual Studio 中(这可能吗?)
请注意,我需要libgit2 C-API,使用Visual Studio安装的任何版本都是可以接受的。
理由:我很懒,不想单独构建/安
我正在尝试安装libgit2和php-git。我已经成功地下载并构建了libgit2,但是当我尝试安装php-git时,我遇到了问题。
下面是我尝试安装它的方法:
phpize
./configure --enable-git2-debug
make
make install
phpize没有问题。但是,当我使用make和make install时,显示以下错误:
./php_git2.h:180:3: error: unknown type name 'git_smart_subtransport'
git_smart_subtransport
我尝试在miniconda上的R 3.6.1上安装easypackages R包,这需要安装gert包,但失败了。日志如下:
* installing *source* package ‘gert’ ...
** package ‘gert’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=
Using PKG_LIBS=-lgit2
----------------------------- AN
我正在尝试使用pip在盐母版上安装一个库pycryptodome,但是安装后版本报告没有正确显示它。然而,我注意到的是,新安装的版本是针对pycrypto而不是pycryptodome更新的。
我需要重新装任何东西吗。或者有其他方法来安装它?
在版本报告下面。
ro@salt:~$ sudo salt --versions-report
Salt Version:
Salt: 3000.2
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
如何将libgit2作为库包含在cmake中。我已经从github克隆了libgit2存储库。然后我就跑了
mkdir build && cd build
cmake ..
make
sudo make install
然后我在/usr/local/include/git2/和/usr/local/include下找到了安装的文件。
现在我必须在我的cmake文件中放入什么?
为了使用git2go,我通过vcpkg vcpkg.exe install libgit2:x64-windows --recurse安装了libgit2,并且安装成功。不幸的是,vcpkg不提供pkg- openssl.pc的配置,因此git2go在运行以下任何代码时都会失败
# pkg-config --cflags -- libgit2
Package openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `openssl.pc'
我很高兴VS2013包含了对Git的内置支持,但我在让它正常工作时遇到了一些问题。我使用SSH密钥将身份验证设置为我自己的Gitlab私有安装,但我在Visual Studio 2013中找不到指定此SSH密钥的任何地方。我还必须在IDE中输入全局Git设置(名称和电子邮件),这意味着它实际上不会从我已经设置的全局设置中提取这些信息。
有没有人有这方面的经验?我知道官方版本刚刚发布,但我希望有人已经通过RC弄明白了这一点。谢谢!
我按照libgit2的README.md文件中指定的安装说明进行安装。
什么是正确的目录指定为“安装前缀”?
以下是README.md的相关摘录:
The `libgit2` library is built using [CMake](<http://www.cmake.org>) (version 2.6 or newer) on all platforms.
On most systems you can build the library using the following commands
$ mkdir build && cd b
我已经建立了一个小的wpf应用程序,管理我正在工作的网站。这个应用程序的关键功能是,它允许我签出主题存储库的不同分支。这在visual studio中工作得很好,但当我在我的windows8机器上发布、安装和运行这个应用程序时,它返回的结果是:
{"Unable to load DLL 'git2': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}
我已经在互联网上搜索过了,stackoverflow。还有类似的问题,例如,但提供的答案(以及答案中描述
for i in Iterators.reverse(Iterators.drop([1,2], 1))
println(i)
end
MethodError: no method matching iterate(::Base.Iterators.Reverse{Base.Iterators.Drop{Array{Int64,1}}})
Closest candidates are:
iterate(!Matched::LibGit2.GitRevWalker) at /buildworker/worker/package_linux64/build/usr/share/juli
这是我的文件的内容:
platform :ios, '7.0'
pod 'RedditKit', '~> 1.3'
它被放置在我的iOS项目的根(即不是工作区)
当我运行pod install时,我收到了以下错误消息:
$ pod install
Analyzing dependencies
[!] An error occurred while performing `git pull` on repo `master`.
[!] /usr/bin/git pull --ff-only
fatal: Not possible to f
我以前试过,但在完整的构建中几乎没有成功,但现在也失败了,显然我在windows上遗漏了一些东西(是的,它可能是windows :P)
有人能陪我走过吗?
找到要用OpenSSL编译的正确的libssh2
实际上,cmake/将libssh2编译成libgit2是因为它一直说找不到libssh2,而我又在努力构建它。
我在windows中使用CMake gui,试图构建一个VC2015项目
生成libgit2时遇到的错误是
checking for module 'libssh2'
package 'libssh2' not found
L
我试图构建。
我安装了go、CMake和MinGW,并试图使它们在gitql下工作,但是当我在gitql目录中调用cmake时,会得到以下错误:
-- Building for: NMake Makefiles
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:14 (PROJECT):
The CMAKE_C_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake g