freeBSD: Atom テキストエディタ

freeBSD: Atom テキストエディタ

すべてアトムテキストエディタFreeBSD ビルドガイドライン:

pkg install node
pkg install npm
pkg install libgnome-keyring
npm config set python /usr/local/bin/python2 -g

それから:

git clone https://github.com/atom/atom
cd atom
script/build

これは、Gnome 3.18.2を実行しているFreeBSD-11.1-RELEASE-amd64-disc1.isoを使用するゲストアドインを持つvboxゲストです。 10人のホストを獲得してください。

私は:

script/build

私は得る:

  Node: v8.8.1
  Npm:  v5.3.0
  Installing script dependencies
  prebuild-install info begin Prebuild-install version 2.3.0
  prebuild-install info looking for local prebuild @ prebuilds/leveldown-v1.9.0-node-v57-freebsd-x64.tar.gz
  prebuild-install info looking for cached prebuild @ ~/.npm/_prebuilds/https-github.com-level-leveldown-releases-download-v1.9.0-leveldown-v1.9.0-node-v57-freebsd-x64.tar.gz
  prebuild-install http request GET https://github.com/level/leveldown/releases/download/v1.9.0/leveldown-v1.9.0-node-v57-freebsd-x64.tar.gz
  prebuild-install http 404 https://github.com/level/leveldown/releases/download/v1.9.0/leveldown-v1.9.0-node-v57-freebsd-x64.tar.gz
  prebuild-install WARN install No prebuilt binaries found (target=8.8.1 runtime=node arch=x64 platform=freebsd)
  In file included from ../deps/leveldb/leveldb-1.20/db/builder.cc:5:
  In file included from ../deps/leveldb/leveldb-1.20/db/builder.h:8:
  In file included from ../deps/leveldb/leveldb-1.20/include/leveldb/status.h:16:
  In file included from /usr/include/c++/v1/string:469:
  /usr/include/c++/v1/__config:73:2: error: "_LIBCPP_TRIVIAL_PAIR_COPY_CTOR" is no longer supported.        use _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR instead
  #error "_LIBCPP_TRIVIAL_PAIR_COPY_CTOR" is no longer supported. \
   ^
  1 error generated.
  gmake: *** [deps/leveldb/leveldb.target.mk:150: Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o] Error 1
  gyp ERR! build error 
  gyp ERR! stack Error: `gmake` failed with exit code: 2
  gyp ERR! stack     at ChildProcess.onExit (~/atom/script/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
  gyp ERR! stack     at emitTwo (events.js:125:13)
  gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
  gyp ERR! System FreeBSD 11.1-RELEASE
  gyp ERR! command "/usr/local/bin/node" "~/atom/script/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
  gyp ERR! cwd ~/atom/script/node_modules/electron-link/node_modules/leveldown
  gyp ERR! node -v v8.8.1
  gyp ERR! node-gyp -v v3.6.2
  gyp ERR! not ok 
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! [email protected] install: `prebuild-install || node-gyp rebuild`
  npm ERR! Exit status 1
  npm ERR! 
  npm ERR! Failed at the [email protected] install script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

  npm ERR! A complete log of this run can be found in:
  npm ERR!     ~/.npm/_logs/2017-11-09T22_00_42_308Z-debug.log
  child_process.js:621
   throw err;
   ^

  Error: Command failed: ~/atom/script/node_modules/.bin/npm --loglevel=error install
  prebuild-install info begin Prebuild-install version 2.3.0
  prebuild-install info looking for local prebuild @ prebuilds/leveldown-v1.9.0-node-v57-freebsd-x64.tar.gz
  prebuild-install info looking for cached prebuild @ ~/.npm/_prebuilds/https-github.com-level-leveldown-releases-download-v1.9.0-leveldown-v1.9.0-node-v57-freebsd-x64.tar.gz
  prebuild-install http request GET https://github.com/level/leveldown/releases/download/v1.9.0/leveldown-v1.9.0-node-v57-freebsd-x64.tar.gz
  prebuild-install http 404 https://github.com/level/leveldown/releases/download/v1.9.0/leveldown-v1.9.0-node-v57-freebsd-x64.tar.gz
  prebuild-install WARN install No prebuilt binaries found (target=8.8.1 runtime=node arch=x64 platform=freebsd)
  In file included from ../deps/leveldb/leveldb-1.20/db/builder.cc:5:
  In file included from ../deps/leveldb/leveldb-1.20/db/builder.h:8:
  In file included from ../deps/leveldb/leveldb-1.20/include/leveldb/status.h:16:
  In file included from /usr/include/c++/v1/string:469:
  /usr/include/c++/v1/__config:73:2: error: "_LIBCPP_TRIVIAL_PAIR_COPY_CTOR" is no longer supported.        use _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR instead
  #error "_LIBCPP_TRIVIAL_PAIR_COPY_CTOR" is no longer supported. \
   ^
  1 error generated.
  gmake: *** [deps/leveldb/leveldb.target.mk:150: Release/obj.target/leveldb/deps/leveldb/leveldb-1.20/db/builder.o] Error 1
  gyp ERR! build error 
  gyp ERR! stack Error: `gmake` failed with exit code: 2
  gyp ERR! stack     at ChildProcess.onExit (~/atom/script/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
  gyp ERR! stack     at emitTwo (events.js:125:13)
  gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
  gyp ERR! System FreeBSD 11.1-RELEASE
  gyp ERR! command "/usr/local/bin/node" "~/atom/script/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
  gyp ERR! cwd ~/atom/script/node_modules/electron-link/node_modules/leveldown
  gyp ERR! node -v v8.8.1
  gyp ERR! node-gyp -v v3.6.2
  gyp ERR! not ok 
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! [email protected] install: `prebuild-install || node-gyp rebuild`
  npm ERR! Exit status 1
  npm ERR! 
  npm ERR! Failed at the [email protected] install script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

  npm ERR! A complete log of this run can be found in:
  npm ERR!     ~/.npm/_logs/2017-11-09T22_00_42_308Z-debug.log

   at checkExecSyncError (child_process.js:598:13)
at Object.execFileSync (child_process.js:618:13)
at module.exports (~/atom/script/lib/install-script-dependencies.js:9:16)
at Object.<anonymous> (~/atom/script/bootstrap:28:1)
at Module._compile (module.js:612:30)
at Object.Module._extensions..js (module.js:623:10)
at Module.load (module.js:531:32)
at tryModuleLoad (module.js:494:12)
at Function.Module._load (module.js:486:3)
at Module.require (module.js:556:17)

エラー履歴:

~/.npm/_logs/2017-11-09T22_00_42_308Z-debug.log

私は想像していたものの上から始めて試してみようと思いました。

npm install leveldown

不運。

私は試した:

npm install leveldown --llvm-version=5.0

これは毎日動作しますfreebsd 11.1#390では、レベル/レベルダウン/ビルドが失敗します。

しかし、Atomはまだ同じ出力を構築しません。たぶんこの問題は他の場所で解決されたかもしれませんが、私はまだそれを見る機会がありませんでした。

ハーバーパーティーではありませんが、ポートエラー言ったようにLovell/sharp/FreeBSD 11用にビルドできません。 _LIBCPP_TRIVIAL_PAIR_COPY_CTOR はサポートされなくなりました。 #873

私は走ったAtom/atom/AtomはFreeBSD 11.0 x86_32#6035でビルドできませんでした。しかし、私は質問が十分に似ているかどうかを分析するのに十分な文章を読み書きする能力はありません。私は彼らが明らかに十分に似ているとは思わない。

レベルダウンが最初のエラーだと思います。これらの想像に基づいて、私はleveldbが出力順序にのみ基づいてエラーであると推測します。まだleveldbに十分近いわけではありません。

私は試した:

npm install ~/atom/script leveldown --llvm-version=5.0

まだ何もありません。

leveldown-prebuilt

もっと悪い。間違いはより速く行われます。

AtomはfreeBSDで構築できませんか?エラーを解決するために正しいパスをたどっていますか?出力がleveldown v.1.9を参照していることがわかりました。

atom/script/package.json

説明する:

"leveldown": "^2.0.0",

しかし、レベルダウンはv.1.5にあるようです。別の違いはないようですが、何と言うべきでしょうか…?

ここからfreeBSD-11.1でAtomを構築して実行するにはどうすればよいですか?

ご意見、ご協力、忍耐に感謝します。

ベストアンサー1

パッチで修正」バグ 222153 - www/node: 実行時に clang バージョンを検出」。

源泉: "バグ 220983 - www/node: common.gypi を誤ってパッチする":

報告時間:2017-07-24 23:28 UTC作成者:Randy

www/node のポートインストールでは、次の行を使用して common.gypi にパッチを適用します。

/usr/include/c++/v1/cstdlib:85 に含まれるファイル: /usr/include/c++/v1/__config:73:2: エラー: '_LIBCPP_TRIVIAL_PAIR_COPY_CTOR' はサポートされなくなりました。代わりに_LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTORを使用してください。

#error "_LIBCPP_TRIVIAL_PAIR_COPY_CTOR"はサポートされなくなりました。 \^

1つのエラーを生成しました。

マックスコーン freebsd_committer 2018-01-26 16:47:45 UTC

バグ222153には、この問題を解決するためのパッチが含まれています。

おすすめ記事