Mac Eclipse Failed to load JavaHL Library.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wy10207010219/article/details/42294293
写这一篇前我想发表一下感慨:

你所害怕的事,你想要逃避的事,在将来的某个时间你必将要再去面对它.几个月前遇到的问题,一直没解决,今天终于解决了。


Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
no svnjavahl in java.library.path

20140618120745250.png



在网上搜了好多,都是用MacPorts

     在http://www.macports.org/install.php下载与你系统相对应的MacPorts并安装。

安装完之后,终端执行 sudo port install subversion-javahlbindings +no_bdb +universal 。

      如果出现错误:

      Error: Port subversion-javahlbindings not found

      继续执行 sudo port -v selfupdate


    出现超时
68-245-171-115:var fanshulin$ sudo port -v selfupdate
Password:
--->  Updating MacPorts base sources using rsync
rsync: failed to connect to rsync.macports.org: Operation timed out (60)
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 10

Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed


出现错误解决如下:
    

    可以执行sudo port clean,再重新执行上面的sudo port install subversion-javahlbindings +no_bdb +universal 和   

 sudo port -v selfupdate。不行的话再执行下面的


   打开官网链接:http://trac.macports.org/wiki/howto/PortTreeTarball

看到如下信息

Configuration

Edit $prefix/etc/macports/sources.conf, comment out the rsync entry, and add a new entry as follows:

#rsync://rsync.macports.org/release/tarballs/ports.tar [default]
https://distfiles.macports.org/ports.tar.gz [default]

Optional Parts

Test Sync

Run sync in debug mode and watch for the tarball being used instead of rsync:

port -d sync 
就是让你打开MacPorts目录下sources.conf文件修改其中内容,直接修改不了。拷贝到桌面,用文本编辑器打开,滑动到最底端看到:rsync://rsync.macports.org/release/tarballs/ports.tar [default]这一行,将这一行注释掉,替换成上面那两行


结果如下: //rsync://rsync.macports.org/release/tarballs/ports.tar [default]
#rsync://rsync.macports.org/release/ports/ [default]
http://www.macports.org/files/ports.tar.gz [default]

修改完后保存,拷贝到MacPorts目录下,覆盖掉原来的sources.conf

再执行:port -d sync

会看到一大串更新的信息。


接着执行:sudo port install subversion-javahlbindings,[不行的话关掉终端或重启电脑再试试]结果如下:(到此问题解决)


Last login: Wed Dec 31 13:42:01 on ttys000

wyappledeMac-mini:~ wyapple$  sudo port install subversion-javahlbindings

Warning: /opt/local/etc/macports/sources.conf specifies invalid source '//rsync://rsync.macports.org/release/tarballs/ports.tar [default]', ignored.

--->  Computing dependencies for subversion-javahlbindings

--->  Dependencies to be installed: apr apr-util db46 db_select expat libiconv sqlite3 libedit ncurses cyrus-sasl2 kerberos5 libcomerr gettext openssl zlib libmagic serf1 subversion curl-ca-bundle

--->  Fetching archive for apr

Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers>

--->  Attempting to fetch apr-1.5.1_0.darwin_14.x86_64.tbz2 from http://jog.id.packages.macports.org/macports/packages/apr

--->  Attempting to fetch apr-1.5.1_0.darwin_14.x86_64.tbz2.rmd160 from http://jog.id.packages.macports.org/macports/packages/apr

.......

--->  Installing subversion-javahlbindings @1.8.11_0

--->  Activating subversion-javahlbindings @1.8.11_0

--->  Cleaning subversion-javahlbindings

--->  Updating database of binaries

--->  Scanning binaries for linking errors               

--->  No broken files found.











阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页