Comments (12)
Hi Giuditta,
I receive your error message if I start the powershell as regular user, not in administrator mode.
Please make sure the powershell is started with administrator rights, as the installation script needs to create/write folders like:
C:\Users\DISCUS_INSTALLATION\
and C:\Programs (x86)\DiscusWSL
Is the home folder of the user account that you start the powershell at C:\Users or is it at a different disk?
Best
Reinhard
from diffusecode.
from diffusecode.
Hi Reinhard,
The latest version on windows has some bugs for installation.
I find the powershell script download the bbb_install_script.sh in C:\Users\DISCUS_INSTALLTION,
and the base shell script want to download something from github(like DIFFUSE_INSTALL.tar.gz/DIFFUSE_CODE_pgplot.tar.gz)
but it is not working in line 85:
export DISCUS_VERSION=$(curl --silent "https://github.com/tproffen/DiffuseCode/releases/latest" | grep -Poe 'v.[0-9]*.[0-9]*.[0-9]*')
It can not get the right version ! it return NULL !!!
It causes the correct link ("https://github.com/rneder/DiffuseSuplement/releases/V.1.0.0/DIFFUSE_INSTALL.tar.gz")to become wrong, such as "https://github.com/rneder/DiffuseSuplement/releases/download//DIFFUSE_INSTALL.tar.gz"
The same error occurs at line 88:
export DISCUS_SUPPLEMENT=$(curl --silent "https://github.com/rneder/DiffuseSuplement/releases/latest" | grep -Poe 'v.[0-9]*.[0-9]*.[0-9]*')
at Ubuntu(WSL) /home/xx_user_name/DIFFUSE_INSTALL/get_diffuse_ubuntu.sh line 9:
export DISCUS_SUPPLEMENT=$(curl --silent "https://github.com/rneder/DiffuseSuplement/releases/latest" | grep -Poe 'v.[0-9]*.[0-9]*.[0-9]*')
In summary, these files cannot be downloaded correctly, causing the installation to fail on windows.
And I would like to contribute to DiffuseCode when i have time.
(And I am not a English native speaker,please forgive me)
from diffusecode.
Hi "black-06"
I cannot reproduce the error message.
If I download the latest Windows10 installation script bbb_install_suite_Windows10_WSL.ps1 and execute this from within a powershell that I have started with administrator rights, everything installs just fine. This has been tested on:
Windows10 with and without WSL/Ubuntu installed.
Both on systems with WSL 1 and WSL 2
It does install 6.08.01
Could you please try the installation again with the latest bbb_install_suite_Windows10_WSL.ps1 from the current release (v.6.08.01)?
Could you please document the installation issue in a bit more detail:
Did you download the latest bbb_install_suite_Windows10_WSL.ps1 ?
Was a previous version of discus_suite installed on your computer, if so which version?
As default, I use WSL1 instead of WSL 2, Which version is running on your computer? To find out, please start the powershell and run: wsl -l -v
could you send screen shots of the error message ?
from diffusecode.
Hi Reinhard,
I may know the cause of the mistake.
Because I am in Chinese mainland.
I occasionally can't access github properly,this can result in the software not being able to obtain version information or software from github.
So I used FastGithub
This is a reverse proxy software,
So curl exit with the error: (60) Peer's Certificate issuer is not recognized.
The installation script uses the Silent mode of curl, so nothing is on display in the console.
I modified the script and used curl -k,like
export DISCUS_VERSION=$(curl -k "https://github.com/tproffen/DiffuseCode/releases/latest" | grep -Poe 'v.[0-9]*.[0-9]*.[0-9]*')
It successfully installed the software.
I'm glad for your reply, by the way, have you considered offline installation,This is good for users who have a bad network.
from diffusecode.
Hi Giuditta,I met excatly the same problem with yours. I wonder if you had well soleved it and how? Thank you! Cheers Qi
Hi Reinhard, Thank you for the prompt reply! I had a previous version of discus installed but trying to put the new one is proving challenging... I'm running it as administrator already, but it's giving the error regardless. The home folder is C:\Users\P70067115. Should I edit the .ps1 file accordingly? I can see that at the moment the DISCUS_INSTALLATION file gets created outside of the C:\Users\P70067115 (just in the previous layer, Users). Cheers, Giuditta
from diffusecode.
Hi Qi,
The error that Giuditta encountered was caused by the antivirus software, which did not allow the Windows Subsystem for Linux(WSL) to be installed properly. With the thread prevention setting to allow WSL the installation went smoothly.
Another issue I have encountered is related to WSL version 2. With WSL version 2 one might have to tweak the settings for virtual machines on some Windows installation. Thus, please ensure that after the initial installation of WSL with the dism.exe program:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
you issue the command in a powershell window:
wsl --set-default-version 1
An error I hav encountered is users not to enter the dism.exe command in a single command line.
from diffusecode.
Hi Qi!
I confirm Reinhard response above, basically my work computer has McAfee and it blocks the Linux environment to execute it properly. If you have the same antivirus, you can go into Settings (from the tiny arrow up right in the window) > Threat Prevention > Show advanced. The thing you're looking for is in "Rules" under the name "Executing Windows Subsystem for Linux". Untick the two boxed and you should be able to proceed with the installation, but mind that this setting is stubborn and might come back by itself!
Cheers,
Giuditta
from diffusecode.
Hi Reinhard and Giuditta,
Thank you for your replies. I have a good news and a bad news to update. Good news is that I have successfully installed DISCUS using an Ubuntu with VM. Bad news is that I cannot still finish the install process using Ubuntu-LTS. I have no McAfee or any other antiviral software in my PC, so I do not know. It was likely caused by the instability network of mine to visit GitHub.
When I use the scripts (wget https://github.com/tproffen/DiffuseCode/releases/download/v.6.08.02/bbb_install_script.sh && chmod u+x * && ./bbb_install_script.sh) under Ubuntu-LTS, it do can download installation parts and fetch thousands of Ubuntu related archives. However, it was stuck every time at the near end, when it starts to download files from github, with a message like (DISCUS_SUITE INSTALLATION
https://github.com/rneder/DiffuseSuplement/releases/download//DIFFUSE_WSL_Ubuntu_2004_v.6.08.02.tar.gz does not exist
Installation of DISCUS_SUITE from code at github
Download may take a moment, please be patient
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:21 --:--:-- 0
curl: (7) Failed to connect to github.com port 443: Connection refused).
I would try some more times at different times of a day, and see what it will happen. Enjoy your holiday! Cheers Qi.
from diffusecode.
It appears that you seem to be behind a proxy server / firewall that does not seem to grant access to github?
Within powershell please try:
curl.exe "https://github.com/rneder/DiffuseSuplement/releases/latest"
Alternatively try within the WSL Ubuntu the command
curl "https://github.com/rneder/DiffuseSuplement/releases/latest"
In both cases you should get a response:
You are being redirected. What happens?from diffusecode.
I guess I know what has happened. Because my network is not stable, I add an IP adress of github.com to my hosts file. When my network was relatively smooth, I performed the installation again and finally got the discus start.
from diffusecode.
Glad to hear that the installation worked out!
from diffusecode.
Related Issues (13)
- 5.14 does not build on ARCH LINUX
- gcc old ,ccmake cannot continue HOT 3
- DISCUS giving "Macro not found" error HOT 1
- make erro /Env Centos7.9 gfortran-7.5.0,hdf5-5.4 HOT 2
- Patch file for CMakeLists.txt files when using fort HOT 2
- error compiling discus_exp2pdf_run.f90 HOT 3
- cell volume <= 0 HOT 3
- Installation on arm-architecture HOT 4
- Stacking fault
- compiling on Windows - Could not find Readline
- Kuplot error HOT 5
- Nexus F90
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diffusecode.