CoreOSにはパッケージマネージャは含まれていませんが、私が好むテキストエディタはnano
notvi
またはですvim
。この問題を解決する方法はありますか?
gcc
使用できないため、ソースからコンパイルできません。
core@core-01 ~/nano-2.4.1 $ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking for style of include used by make... none
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/core/nano-2.4.1':
configure: error: no acceptable C compiler found in $PATH
これを文脈に合わせるために、私は以下を見ています。このガイド私が使用したいと思ったときnano
。
ベストアンサー1
CoreOSコンピュータでこれを行うには、次のヒントに従ってください。ここに案内:
- CoreOSボックスを起動して
core
ユーザーとして接続する /bin/toolbox
デフォルトのFedoraコンテナにコマンドを実行します。- 必要なソフトウェアをインストールしてください。この場合、nanoをインストールするには、aを実行するのと同じくらい簡単です
dnf -y install nano
(dnfがyumを置き換えました)。 - nanoを使ってファイルを編集します。 「しかし、待ってください。私はコンテナの中にいます!」心配しないでください。ホストのファイルシステムは
/media/root
コンテナ内にマウントされています。したがって、サンプルテキストファイルを保存し、コンテナに/media/root/home/core/test.txt
保存し、最後に。 test.txtファイルが表示されますか?exit
/home/core
この部分があまりにも秘密であるか混乱している場合は、次の質問をしてください。 :-)
最近のCoreOS 47.83.202103292105-0では、ホスト/host
が/media/root
。