RocksDB在全新安装(Mac OS X)上出现Arcanist错误(arcanist error with RocksDB on fresh install (Mac OS X))

编程入门 行业动态 更新时间:2024-10-08 20:39:00
RocksDB在全新安装(Mac OS X)上出现Arcanist错误(arcanist error with RocksDB on fresh install (Mac OS X))

我已经在Mac OS X El Capitan(10.11.4)上安装了一个新的arcanist副本到/usr/local/phabricator/arcanist 。

如果我先进入/usr/local/phabricator/arcanist然后运行bin/arc或arc (正如我在PATH添加/usr/local/phabricator/arcanist/bin ),那么一切都很好。 然而,如果我尝试从我的系统上的rocksdb目录运行arc lint ,那么我总会遇到致命错误,输出如下所示:

$ arc lint --trace ARGV '/usr/local/phabricator/arcanist/bin/../scripts/arcanist.php' 'lint' '--trace' LOAD Loaded "phutil" from "/usr/local/phabricator/libphutil/src". LOAD Loaded "arcanist" from "/usr/local/phabricator/arcanist/src". Config: Did not find user configuration at "/Users/aretter/.arcrc". Config: Did not find system configuration at "/etc/arcconfig". Working Copy: Reading .arcconfig from "/Users/aretter/code/rocksdb/.arcconfig". Working Copy: Path "/Users/aretter/code/rocksdb" is part of `git` working copy "/Users/aretter/code/rocksdb". Working Copy: Project root is at "/Users/aretter/code/rocksdb". Config: Did not find local configuration at "/Users/aretter/code/rocksdb/.git/arc/config". Loading phutil library from '/Users/aretter/code/rocksdb/arcanist_util'... [2016-06-14 09:31:17] EXCEPTION: (PhutilMissingSymbolException) Failed to load class or interface 'ArcanistBaseWorkflow': the class or interface 'ArcanistBaseWorkflow' is not defined in the library map for any loaded phutil library. If you are not a developer, this almost always means that a library is out of date. For example, you may have upgraded `phabricator` without upgrading `libphutil`, or vice versa. It might also mean that you need to restart Apache or PHP-FPM. Make sure all libraries are up to date and all services have been restarted. If you are a developer and this symbol was recently added or moved, your library map may need to be rebuilt. You can rebuild the map by running 'arc liberate'. For more information, see: https://secure.phabricator.com/book/phabcontrib/article/adding_new_classes/ at [<phutil>/src/__phutil_library_init__.php:25] arcanist(head=master, ref.master=c13e5a629535), arcanist_util(head=java-wb-save-restore-points, ref.master=fda098461b3f, ref.java-wb-save-restore-points=dd6d2e75d836), phutil(head=master, ref.master=fb1e159d3640) #0 __phutil_autoload(string) #1 spl_autoload_call(string) called at [<arcanist_util>/config/FacebookArcanistConfiguration.php:7] #2 include_once(string) called at [<phutil>/src/moduleutils/PhutilBootloader.php:226] #3 PhutilBootloader::executeInclude(string) called at [<phutil>/src/moduleutils/PhutilBootloader.php:216] #4 PhutilBootloader::loadLibrarySource(string, string) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:381] #5 PhutilSymbolLoader::loadSymbol(array) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:256] #6 PhutilSymbolLoader::selectAndLoadSymbols() called at [<phutil>/src/__phutil_library_init__.php:22] #7 __phutil_autoload(string) #8 spl_autoload_call(string) called at [<arcanist>/scripts/arcanist.php:186]

请注意,我已尝试重新安装它,并运行arc liberate ,但都没有解决问题。

有人能告诉我我的系统有什么问题吗?

我也检查过Git,我的奥术师确实是正确的和最新的:

$ cd /usr/local/phabricator/arcanist $ git remote -v origin github.com/phacility/arcanist.git (fetch) origin github.com/phacility/arcanist.git (push) $ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean $ git pull Already up-to-date.

我也尝试通过这种机制重新安装:

$ cd /usr/local/phabricator $ rm -rf arcanist libphutil $ git clone https://github.com/phacility/libphutil.git $ git clone https://github.com/phacility/arcanist.git

I have installed a fresh copy of arcanist on to Mac OS X El Capitan (10.11.4) into /usr/local/phabricator/arcanist.

If I first cd into /usr/local/phabricator/arcanist and run either bin/arc or just arc (as I added /usr/local/phabricator/arcanist/bin to my PATH) then all is fine. However if I try and run arc lint from my rocksdb directory on my system then I always get a fatal error, the output looks like this:

$ arc lint --trace ARGV '/usr/local/phabricator/arcanist/bin/../scripts/arcanist.php' 'lint' '--trace' LOAD Loaded "phutil" from "/usr/local/phabricator/libphutil/src". LOAD Loaded "arcanist" from "/usr/local/phabricator/arcanist/src". Config: Did not find user configuration at "/Users/aretter/.arcrc". Config: Did not find system configuration at "/etc/arcconfig". Working Copy: Reading .arcconfig from "/Users/aretter/code/rocksdb/.arcconfig". Working Copy: Path "/Users/aretter/code/rocksdb" is part of `git` working copy "/Users/aretter/code/rocksdb". Working Copy: Project root is at "/Users/aretter/code/rocksdb". Config: Did not find local configuration at "/Users/aretter/code/rocksdb/.git/arc/config". Loading phutil library from '/Users/aretter/code/rocksdb/arcanist_util'... [2016-06-14 09:31:17] EXCEPTION: (PhutilMissingSymbolException) Failed to load class or interface 'ArcanistBaseWorkflow': the class or interface 'ArcanistBaseWorkflow' is not defined in the library map for any loaded phutil library. If you are not a developer, this almost always means that a library is out of date. For example, you may have upgraded `phabricator` without upgrading `libphutil`, or vice versa. It might also mean that you need to restart Apache or PHP-FPM. Make sure all libraries are up to date and all services have been restarted. If you are a developer and this symbol was recently added or moved, your library map may need to be rebuilt. You can rebuild the map by running 'arc liberate'. For more information, see: https://secure.phabricator.com/book/phabcontrib/article/adding_new_classes/ at [<phutil>/src/__phutil_library_init__.php:25] arcanist(head=master, ref.master=c13e5a629535), arcanist_util(head=java-wb-save-restore-points, ref.master=fda098461b3f, ref.java-wb-save-restore-points=dd6d2e75d836), phutil(head=master, ref.master=fb1e159d3640) #0 __phutil_autoload(string) #1 spl_autoload_call(string) called at [<arcanist_util>/config/FacebookArcanistConfiguration.php:7] #2 include_once(string) called at [<phutil>/src/moduleutils/PhutilBootloader.php:226] #3 PhutilBootloader::executeInclude(string) called at [<phutil>/src/moduleutils/PhutilBootloader.php:216] #4 PhutilBootloader::loadLibrarySource(string, string) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:381] #5 PhutilSymbolLoader::loadSymbol(array) called at [<phutil>/src/symbols/PhutilSymbolLoader.php:256] #6 PhutilSymbolLoader::selectAndLoadSymbols() called at [<phutil>/src/__phutil_library_init__.php:22] #7 __phutil_autoload(string) #8 spl_autoload_call(string) called at [<arcanist>/scripts/arcanist.php:186]

Please note that I have tried reinstalling it and also running arc liberate, but neither has fixed the issue.

Can someone tell me what is wrong on my system?

I have also checked with Git that my arcanist is indeed correct and up-to-date:

$ cd /usr/local/phabricator/arcanist $ git remote -v origin github.com/phacility/arcanist.git (fetch) origin github.com/phacility/arcanist.git (push) $ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean $ git pull Already up-to-date.

I also tried reinstalling via this mechanism:

$ cd /usr/local/phabricator $ rm -rf arcanist libphutil $ git clone https://github.com/phacility/libphutil.git $ git clone https://github.com/phacility/arcanist.git

最满意答案

arcanist_util(head = java-wb-save-restore-points,ref.master = fda098461b3f,ref.java-wb-save-restore-points = dd6d2e75d836)

这看起来不像来自源代码的一个新版本的奥术师,至少上游并不负责“arcanist_util”。 你从哪里得到它的? 我会删除它,并从GitHub直接拉。 http://github.com/phacility/arcanist

arcanist_util(head=java-wb-save-restore-points, ref.master=fda098461b3f, ref.java-wb-save-restore-points=dd6d2e75d836)

This doesn't look like a fresh copy of arcanist to me from source, at least the upstream isn't responsible for "arcanist_util". Where did you get it from? I would delete it, and pull directly from GitHub. http://github.com/phacility/arcanist

更多推荐

本文发布于:2023-04-29 08:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1335598.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   OS   Arcanist   RocksDB   Mac

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!