在 Windows 上安装 libssh2.dll
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/22144893/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
install libssh2.dll on windows
提问by victoria
I want to install SSH on my PC (windows 7 64bits). But I have a problem with the installation of libssh2.dll file I saved in: C: \ Windows \ SysWOW64 and even in C: \ Windows \ System32 and when I execute this command "regsvr32 libssh2.dll" in cmd as administrator I get this error message: Libssh2.dll "The module" "was loaded, but the DllRegisterServer entry point was not found.
我想在我的 PC(Windows 7 64 位)上安装 SSH。但是我在安装 libssh2.dll 文件时遇到了问题,我保存在:C:\Windows\SysWOW64 甚至 C:\Windows\System32 中,当我以管理员身份在 cmd 中执行此命令“regsvr32 libssh2.dll”时,我得到此错误消息:Libssh2.dll“模块”“已加载,但未找到 DllRegisterServer 入口点。
Verify that "libssh2.dll" is a valid DLL or OCX file and try again. "
验证“libssh2.dll”是否是有效的 DLL 或 OCX 文件,然后重试。”
I downloaded from this site file: http://windows.php.net/downloads/pecl/releases/ssh2/0.12/The only good that contains the libssh2.dll is x86 (knowing that I have a 64bits), is what may be causing the problem? If someone knows a solution, please, share it, it is very important that I find a solution as soon as possible and thank you.
我从这个站点下载了文件:http: //windows.php.net/downloads/pecl/releases/ssh2/0.12/包含 libssh2.dll 的唯一好处是 x86(知道我有 64 位),是什么可能是造成问题的原因吗?如果有人知道解决方案,请分享它,我尽快找到解决方案非常重要,谢谢。
回答by Anatol Belski
You have to put that libssh2.dll somewhere on the %path% so then the PHP extension can find it. Logic were to put it into your PHP dir (if you use the standard zipball from windows.php.net).
您必须将该 libssh2.dll 放在 %path% 的某个位置,以便 PHP 扩展可以找到它。逻辑是将它放入您的 PHP 目录(如果您使用 windows.php.net 中的标准 zipball)。
回答by BlueSuit
well why have you downloaded a 32 bit file to a 64 bit system am I missing something here You can only run a 32bit type if your Apache PHP and MySQL have 32bit running versions or 64 bit in your case. So if you are running a 32bit OS on a 64bit system then this is fine, if you are running 64 bit script on a 64 bit system and are trying to use a 32 bit script which I suspect you are then this is not fine!
好吧,为什么您将 32 位文件下载到 64 位系统,我在这里遗漏了什么?如果您的 Apache PHP 和 MySQL 具有 32 位运行版本或在您的情况下为 64 位,则只能运行 32 位类型。因此,如果您在 64 位系统上运行 32 位操作系统,那么这很好,如果您在 64 位系统上运行 64 位脚本并尝试使用我怀疑您是 32 位脚本,那么这不好!
I would therefore suggest that if this is the case you may have a mix match of OS Versus Script.
因此,我建议,如果是这种情况,您可能会混合使用 OS 与脚本。
There are a few brave people operating in the 64 bit world and you should only ever use the stable versions of the product and like Apache unless you do you will not get the support you want because you have not utilised a stable version only and Apache will not support 64 bit, hence Apache lounge.
有一些勇敢的人在 64 位世界中运行,你应该只使用产品的稳定版本,比如 Apache,除非你不会得到你想要的支持,因为你没有只使用稳定版本,而 Apache 会不支持 64 位,因此 Apache 休息室。
If you are running off localhost or 127.0.0.1, then running a stable 32 bit OS and running the 32 bit stable version is the only way you will get support.
如果您运行的是本地主机或 127.0.0.1,那么运行稳定的 32 位操作系统并运行 32 位稳定版本是您获得支持的唯一途径。