[ERROR] No switch is currently set. Please use 'opam switch' to set or install a switch
make: dune: Command not found
Makefile:118: recipe for target 'clean' failed
make: [clean] Error 127 (ignored)
make[1]: Entering directory '/home/tezos/tezos-new/docs'
make[1]: Leaving directory '/home/tezos/tezos-new/docs'
Already on 'mainnet'
Your branch is up to date with 'origin/mainnet'.
Already up to date.
[ERROR] No switch is currently set. Please use 'opam switch' to set or install a switch
make: dune: Command not found
Makefile:118: recipe for target 'clean' failed
make: [clean] Error 127 (ignored)
make[1]: Entering directory '/home/tezos/tezos-new/docs'
make[1]: Leaving directory '/home/tezos/tezos-new/docs'
[ERROR] No switch is currently set. Please use 'opam switch' to set or install a switch
[tezos] Initialised
任何见解都值得赞赏.
最后,节点被更新,并且正在运行最新的块和所有内容.只是想进一步了解此消息.谢谢.
We are currently receiving these kind of error messages when updating our tezos node.
Our upgrading procedure are like this:
1. We copy the main ~/tezos directory to a new directory called ~/tezos-new.
2. Call update command as shown below.
3. Stop node, change directory names, and start node again.
Using this command:
cd ~/tezos-new && eval $(opam env) && make clean && git checkout
mainnet && git pull && make clean && make build-deps && eval $(opam
env) && make && cd ~
We get errors like this:
[ERROR] No switch is currently set. Please use 'opam switch' to set or install a switch
make: dune: Command not found
Makefile:118: recipe for target 'clean' failed
make: [clean] Error 127 (ignored)
make[1]: Entering directory '/home/tezos/tezos-new/docs'
make[1]: Leaving directory '/home/tezos/tezos-new/docs'
Already on 'mainnet'
Your branch is up to date with 'origin/mainnet'.
Already up to date.
[ERROR] No switch is currently set. Please use 'opam switch' to set or install a switch
make: dune: Command not found
Makefile:118: recipe for target 'clean' failed
make: [clean] Error 127 (ignored)
make[1]: Entering directory '/home/tezos/tezos-new/docs'
make[1]: Leaving directory '/home/tezos/tezos-new/docs'
[ERROR] No switch is currently set. Please use 'opam switch' to set or install a switch
[tezos] Initialised
Any insight is much appreciated.
In the end the node is updated, and is running latest block and everything. Just wanted to get more insight into this message. Thanks.
Then it ask me to modify "~/.profile" so that eval$(opam env) isn't required every time I want access the opam installation. Saying yes to this still gives me the switch error message at the beginning. But thanks for the feedback.
Did you copy ~/tezos to ~/tezos-new without cleaning-up the build-artifacts?
If there is an `_opam` subdirectory in ~/tezos and you try to copy it to ~/tezos-new you may confuse opam (because the _opam directories are not relocatable).
我们目前在更新tezos节点时收到此类错误消息.
我们的升级过程如下: 1.我们将〜/tezos主目录复制到名为〜/tezos-new的新目录. 2.如下所示调用更新命令. 3.停止节点,更改目录名称,然后再次启动节点.
使用此命令:
我们收到这样的错误:
任何见解都值得赞赏.
最后,节点被更新,并且正在运行最新的块和所有内容.只是想进一步了解此消息.谢谢.