windows-subsystem-for-linux

CMake Generator for Visual Studio Linux cross-platform

时光毁灭记忆、已成空白 提交于 2019-12-19 06:43:09
问题 I want to generate a Visual Studio Solution for a cross-platform Linux Project from a CMake Project. The Visual Studio 2017 cross-platform workload works nicely, especially when it comes to debugging. I use it to target the WSL. Now I have an existing Linux CMake project that I want to develop on Windows and Visual Studio and build it on WSL. I just don't seem to see a way of generating an appropriate Solution for Visual Studio. Can anyone enlighten me? 回答1: There were already some queries to

Kicking off a WSL bash-based build from Visual Studio 2015

巧了我就是萌 提交于 2019-12-18 06:18:11
问题 I recently started using the Windows Subsystem for Linux (WSL) to see if my Linux Makefile & arm-none-eabi-gcc based microcontroller project would build "natively" in Windows. To my surprise, the tool chain and Linux based development tools installed and worked perfectly on first go, without any modifications to the Makefile. So that got me thinking to try doing all my code editing in Visual Studio using the IDE features while doing the actual build in the Linux & bash environment provided in

Kicking off a WSL bash-based build from Visual Studio 2015

六眼飞鱼酱① 提交于 2019-12-18 06:17:59
问题 I recently started using the Windows Subsystem for Linux (WSL) to see if my Linux Makefile & arm-none-eabi-gcc based microcontroller project would build "natively" in Windows. To my surprise, the tool chain and Linux based development tools installed and worked perfectly on first go, without any modifications to the Makefile. So that got me thinking to try doing all my code editing in Visual Studio using the IDE features while doing the actual build in the Linux & bash environment provided in

Odoo 12 in WSL - Psycopg2 doesn't get the right Port for PostgreSQL

眉间皱痕 提交于 2019-12-13 17:42:07
问题 I have installed Odoo 12 in Ubuntu 18.04 LTS using WSL for windows 10 Pro. Everything seems fine and service is running, but when I access the localhost I get Internal Server Error, and I get this error: 2019-09-05 06:52:07,596 309 ERROR ? werkzeug: Error on request: Traceback (most recent call last): File "/opt/odoo/.local/lib/python3.6/site-packages/werkzeug/serving.py", line 303, in run_wsgi execute(self.server.app) File "/opt/odoo/.local/lib/python3.6/site-packages/werkzeug/serving.py",

“Non Zero Exit Status” R 3.6.0 “Biobase”

不打扰是莪最后的温柔 提交于 2019-12-13 11:34:59
问题 I need to install different packages on R. The OS is ubuntu for windows. When I try "BiocManager::install("Biobase") I get the following error: ** R ** data ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries mv: cannot move '/home/mark/R/x86_64-pc-linux-gnu

VSCode and MPI in WSL

心不动则不痛 提交于 2019-12-13 06:20:38
问题 I use MPI in a C program in Visual Studio Code on Windows. I compile and run it in WSL just fine, but VSCode warns me that it can't find mpi.h : I have installed libopenmpi-dev in WSL and added the header directories to VSCode's settings ( .vscode/c_cpp_properties.json ): { "configurations": [ { "name": "WSL", "includePath": [ "${workspaceFolder}/**", "/usr/lib/gcc/x86_64-linux-gnu/7/include", "/usr/local/include", "/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed", "/usr/include/x86_64-linux

Crystal installation on WSL fails

孤人 提交于 2019-12-13 03:32:19
问题 I'm following the current crystal installation docs, my installation stops at the first moment and give the error: gpg: connecting dirmngr at '/tmp/apt-key-gpghome.4GKHZljOFL/S.dirmngr' failed: IPC connect call failed gpg: keyserver receive failed: No dirmngr I've already installed dirmngr. 回答1: First of all, you need to remove crystal.list from sources directory to install from start manually. sudo rm /etc/apt/sources.list.d/crystal.list And then: curl -s "https://keyserver.ubuntu.com/pks

Leaving canonical mode (entering raw/cbreak mode) in WSL

断了今生、忘了曾经 提交于 2019-12-13 02:42:22
问题 How do I enter raw or cbreak mode under WSL? I want keyboard input available to stdin immediately, instead of waiting for enter key. I've tried using termios to put the TTY in raw or canonical mode, either by using cfmakeraw or by fiddling with various flags, following the example from the termios manual page and several variations (only disabling ICANON , code similar to ncurses internals, and so on): termios_p->c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON);

Why is the Docker service stopping?

末鹿安然 提交于 2019-12-12 22:48:40
问题 I'm running Ubuntu as a subsystem on Windows 10. I have just followed the steps to install Docker on Linux: https://docs.docker.com/install/linux/docker-ce/ubuntu/ And are now at the step to test the hello-world app: $ sudo docker run hello-world Where I get this error: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. I have narrowed it down to that it actually is the service that is not running - despite lots of other solutions online

Launch VS Code from WSL Bash

早过忘川 提交于 2019-12-12 08:19:28
问题 I have the Creators update installed. WSL is operational. I can execute most .exe files by simply calling notepad.exe But when it comes to VS Code.... I can't use the default code command or call code.exe ... I have also tried code and code.cmd . Why doesn't VS Code execute like other programs? And is there a way to enable the code command? EDIT: I now get these errors: me@mypc:/mnt/c/Users/me/Documents/project_folder$ code . /mnt/c/Program Files (x86)/Microsoft VS Code/bin/code: line 7: