環境崩壊
泣く泣く環境再構築。
Jupyter fortran kernel
WSL 側から windows 側の IE を自動起動させる。
手順メモ帳
ベル音消す
echo "set bell-style none" >> ~/.inputrc
echo "set visualbell t_vb=" >> ~/.vimrc
apt
sudo apt update
sudo apt upgrade
sudo apt autoremove
gfortran
sudo apt install gfortran
sudo apt install gfortran-8
sudo apt install g++
gfortran-9
remove でテスト・リポジトリを消す。
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gfortran-9
sudo add-apt-repository --remove ppa:ubuntu-toolchain-r/test
X-window
echo "export DISPLAY=:0.0" >> ~/.bashrc
echo "export LIBGL_ALWAYS_INDIRECT=1" >> ~/.bashrc
sudo apt install x11-apps
ifort
coarray は調子悪い、composer 2020 beta update1 はライブラリが何かおかしい。また initial release 版でも image 数を少なめにしないと sync できずにストールしたりする。おなじく Windows でも update1 の coarray は実行時におかしい。sync に問題があるように見える。
ifort -coarray=shared -coarray-num-images=6
cp /mnt/d/parallel_studio_xe_2020_technical_preview_composer_edition.tgz .
tar zxvf parallel_studio_xe_2020_technical_preview_composer_edition.tgz
cd parallel_studio_xe_2020_technical_preview_composer_edition/
sudo ./install_GUI.sh
echo "source /opt/intel/bin/compilervars.sh intel64" >> ~/.bashrc
jupyter lab
apt で install すると、IE で立ち上がるようになる。必然的に sudo になる。pip で update するとおかしくなってしまうので、使用を避ける。
sudo apt install jupyter
sudo pip3 install jupyterlab
GitHub - f66blog/jupyter-ifort-kernel: Simple Fortran kernel for Jupyter
mkdir jupyter-kernels
cd jupyter-kernels/
cp -R /mnt/d/ubuntu18/jupyter-ifort-kernel/jupyter-ifort-kernel .
git clone https://github.com/f66blog/jupyter-ifort-kernel.git
pip3 install --user ./jupyter-ifort-kernel
cd jupyter-ifort-kernel
jupyter kernelspec install ifort_spec --user
参考
windows 側の IE プロセス起動用のスクリプトがあるらし?(おかしくなった時のエラーメッセージからみて)
(/usr/share/jupyter/kernels/python3/kernel.json)
{
"argv": [
"/usr/bin/python3",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"display_name": "Python 3",
"language": "python"
}
make
sudo apt install make
sudo apt install cmake
ZMQ おまけ
cp -R /mnt/d/ubuntu18/f08_zmq/ .
wget https://github.com/zeromq/libzmq/releases/download/v4.3.1/zeromq-4.3.1.tar.gz
tar zxvf zeromq-4.3.1.tar.gz
cd zeromq-4.3.1
./configure
make -j 8
sudo make install
flang
最新版 binary チェック
Releases · flang-compiler/flang · GitHub
mkdir flang
cd flang
wget https://github.com/flang-compiler/flang/releases/download/flang_20190329/flang-20190329-x86-70.tgz
tar zxvf flang-20190329-x86-70.tgz
.bashrc の尻に付加。
export PATH=$PATH:$HOME/flang/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/flang/lib
【無関係メモ帳】
windows10 アプリケーション 登録 削除 ゴミ 残り 削除
freesoft-100.com
レジストリにもない場合
Revo Uninstaller 右クリック ディレクトリ開く 手動全削除