Forum Discussion
Yes, WSL was not actually installed. Thank you.
Now, I am getting new error:
/bin/bash: dos2unix: command not found
./create-this-bsp: line 4: $'\r': command not found
./create-this-bsp: line 11: $'\r': command not found
./create-this-bsp: line 20: syntax error near unexpected token `$'in\r''
./create-this-bsp: line 20: ` case "$1" in
Could it be path finding issue ? Or am I missing something ? I do not even know where dos2unix is installed.
Do I need to do something in Eclipse to help it find this dos2unix ?
Thanks.
I was able to resolve the issue, and my Eclipse now compiles perfectly.
It turns out this Intel page https://www.intel.com/content/altera-www/global/en_us/index/support/support-resources/knowledge-base/tools/2019/how-do-i-install-the-windows--subsystem-for-linux---wsl--on-wind.html
which has instructions on how to install WSL, was missing key instruction shown below as #a:
a. sudo apt-get update ---- this was missing from Intel instruction
b. sudo apt install wsl
c. sudo apt install dos2unix
d. sudo apt install make
As a result, during installation of WSL I was getting Linux error "E: Unable to locate package wsl".
Then later in Eclipse I was getting the error: /bin/bash: dos2unix: command not found , and I could not compile the project.
- Jesper5 years ago
New Contributor
What is even more confusing is that WSL and the Linux distribution that you may have installed under Windows 10, such as Ubuntu, is not the same!
I had to open WSL console in Windows 10 and install make and dos2unix. Installing it in my Ubuntu installation did not work.
This is very frustrating. There should be a much simpler way to install the necessary tools for NIOS than this.