[RUBY] How to live a decent life on 2017 Windows

background

It may really be a personal note, but If I feel like it, I will add it.

It doesn't matter, but just in case, the hardware configuration of this PC

-Renewed my own PC for the first time in a long time --non vorrei lavorare

What you can do now

An environment where you can build Node.js native modules without anything

Officially put Python 2.7 series

In the case of Python, there is Anaconda etc., so I put the 3rd system there and the 2nd system normally.

Updated to VS2017

Node.js V8 engine now requires VS2017 for VS2017 Updated

-How to run Edge.js on v9.x system of node --Qiita

Details here? There is.

Insert VS2015 (old)

This is also installed by checking VC ++ so that C ++ can be built.

nvm-windows

I'm using nodebrew on Linux and macOS. .. ..

On Windows, use a Go-implemented version control tool called nvm-windows.

According to the github page, I gently installed the msi installer version.

Unlike nodebrew, if you do v6, you need to specify the version exactly like NG "6.9.2".

nvm arch
nvm list available
nvm install 6.9.2
nvm use 6.9.2

Verification

Put ffi and move factorial Launch the VS developer prompt and operate here

cd %HOMEPATH%\Documents\work\nodejs
mkdir ffi 
cd ffi
npm install ffi
cd node_mudules\ffi\examples\factorial
type README.md

Insert node-canvas

Regarding the installation of GTK2 required for node-canvas

-Maybe even if you put GTK2 in Chocolatey's gtk-runtime, it's not good in 64-bit environment

Screen capture

-How to make a video by desktop capture on Windows

Building an environment where you can build mruby with VS

Put CRuby and bison & flex in Chocolatey

cinst ruby
cinst winflexbison

Open a VS developer prompt, Set the environment variable YACC as follows.

-How to build mruby with cinst bison, flex --Qiita

After that, you can build mruby with rake.

OpenCV using GPU

CUDA 8.0 series was added from the NVidia formula.

Apparently OpenCV 3.1.0 does not seem to build well with CUDA. I cloned OpenCV on github and built it with cmake here and it worked.

By the way, it seems that the python3 module will not be built if world is on.

Run Tensorflow using GPU

Insert cuDNN

Answer something in English, receive the email, unzip the zip file and in the CUDA directory

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\

I copied it to my subordinates.

Put 3.5 series Python in Anaconda

A long time ago, I remember seeing a description that a paid version is required when using GPU, but at least Tensorflow seems to be able to use GPU for free, so I challenged with Anaconda.

pip update and setuptools update

It was an error even if I followed the official Tensorflow guide for Windows. I was told to update pip at the time of this error and did this. However, there is still an error.

Update what is called setuptools as below

pip install --upgrade -I setuptools

After that, I was able to install it according to the guide.

Operation check

A web application of Tensorflow's sample image classification code It works in a Windows environment.

-Tensorflow classify_image.py has been converted to a web application

I did CycleGAN with PyTorch using GPU

Following Tensorflow, in 2017 I was able to run Cycle GAN using PyTorch at hand.

-Implementation of cycleGAN by pytorch was run on Windows

Cordova

npm install -g cordova

Confirmation command

cordova create myapp
cd myapp
cordova add platform android
cordova requirements

Docker

It's not Windows 10 Pro, so I installed Docker Toolbox. Since VitrualBox is already installed, uncheck it and install it.

Run sshd with OpenSSH

-To coexist with Docker Toolbox and MS OpenSSH server on Windows

Use cmder

I put it in chocolaty

-I feel like I'm getting to know cmder, so I made tasks for fluentd

Management of packages put in chocolaty

-Story after installing with chocolatey

In Qiita, the following article has a list of installed packages

choco list -lo

I learned that you can get it at.

How to use cgi with Go

It seems that msys2 was put in chocolatey and the 64-bit version of gcc was put there. ..

set PATH=C:\tools\msys64\mingw64\bin;%PATH%

You can use cgo in this state.

Use Julia on Windows

-I was able to run GPU-compatible Tensorflow from mruby on Windows (MSVC)

Add OCaml

It seems that there are several options. For the time being, select the formula.

Read the following document

-I put the official OCaml on Windows and I was able to run utop

Build Firefox, a web browser that can be said to be representative of OSS, from source

-I built Firefox from source on Windows 10 and tried it

Run X client on WSL

If you put the X server in Windows, it works, but I tried other methods.

-Run X client on WSL without X server

Related article

-Running mruby-http2 on Windows -I was able to run GPU-compatible Tensorflow from mruby on Windows (MSVC) -Running nghttp2 sample with MSVC on Windows 10 -Building a gimp that runs Python-Fu on 64-bit Python on Windows -Calling the library made with Go from mruby on Windows and displaying the webcam image at the command prompt -I made a command to display the webcam image at the command prompt with Rust -How to put ImageMagick header, Lib file and legacy command together in Chocolatey Work procedure to make it usable as a development machine when Surface Go comes

Recommended Posts

How to live a decent life on 2017 Windows
How to run Django on IIS on a Windows server
How to use Dataiku on Windows
How to install pycrypto on Windows
How to deploy django-compressor on Windows
How to install music 21 on windows
How to mount a Windows 10 directory on Ubuntu-Server 20.04 on VMware Workstation 15
[Kivy] How to install Kivy on Windows [Python]
How to use Google Assistant on Windows 10
How to install richzhang / colorization on Windows 10
How to test on a Django-authenticated page
How to quickly install h5py on Windows 10 [Unofficial]
Verification of how to periodically execute a script on a Linux server on Windows
[Python] How to install OpenCV on Anaconda [Windows]
How to install / verify graphviz on anaconda / windows10
How to deploy a Django application on Alibaba Cloud
How to install Linux on a 32bit UEFI PC
A memorandum on how to use keras.preprocessing.image in Keras
How to build a Django (python) environment on docker
Create a decent shell and python environment on Windows
How to build a Python environment on amazon linux 2
How to operate Firefox with selenium on Windows Memo
How to install Python [Windows]
How to call a function
How to register on pypi
How to hack a terminal
How to use GitHub on a multi-person server without a password
How to use Fujifilm X-T3 as a webcam on Ubuntu 20.04
A memo on how to easily prepare a Linux exercise environment
How to run a trained transformer model locally on CloudTPU
How to build a new python virtual environment on Ubuntu
How to run a Python file at a Windows 10 command prompt
How to make a multiplayer online action game on Slack
How to use VS Code in venv environment on windows
A note on how to load a virtual environment in PyCharm
How to set up WSL2 on Windows 10 and create a study environment for Linux commands
How to make a Japanese-English translation
How to write a Python class
Python 3.6 on Windows ... and to Xamarin.
How to put a symbolic link
How to install mysql-connector-python on mac
How to make a slack bot
How to create a Conda package
How to install graph-tool on macOS
How to make a crawler --Advanced
Notes on how to use featuretools
How to make a recursive function
How to create a virtual bridge
How to install OpenCV on Mac
How to run matplotlib on heroku
How to install PyPy on CentOS
How to use homebrew on Debian
Create a Linux environment on Windows 10
Misunderstanding on how to connect cnn
How to make a deadman's switch
[Blender] How to make a Blender plugin
How to delete a Docker container
How to make a crawler --Basic
Notes on how to use doctest
How to install Maven on CentOS
Notes on how to write requirements.txt