-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error installing XC in cmake build step Ubuntu 20.04 #100
Comments
Hi @mihdicaballero I think the error (at least the first one) is due to some lines I forgot to delete when I move the code from a now deprecated repository called INCLUDE could not find load file:
/home/mihdi/.xc_build/lcmd_dirs.cmake```
on your log. I'll push a fixed version of CMakeLists.txt |
There is another message that makes me think that X11 is not installed. Have you installed all the dependencies for Ubuntu 20.04? |
Thanks, @lcpt, for the quick answer! I had installed X11 with Xming, but maybe I didn't open it. I did install all the dependecies withouth problem, and upgraded all of them to their last version. Now I could run the command without problems (verified to have xming open) but when I tried to run the next one:
I had many errors in 23% of progress. I double checked that I had 8 cores. This is the log And this is a screenshot from the first error if it helps. It seems that mainly the problem is with the word Thanks in advance :) |
Ah! You've cloned the repository in the MS-Windows disk. Well, maybe this is related with your problem. As far as I know, Unix file systems are case-sensitive since the beginning. Apparently, for Windows, that's not the default behavior. The simplest solution is to clone the repository in the Linux file system. I can assist you with that if necessary. Otherwise, it will take some time to detect the conflicting files and to find a solution... |
Hi! I found this link that confirms what you said about MS-Windows not being case-sensitive. The solution might be to have no more case-sensitive conflicts, according to Microsoft. And in this post from stack overflow they say that the only solution might be changing the name of those conflicts. I installed Ubuntu inside Windows as it was described in the install procedure in a folder in one of my drives without much thought. You say that I should have installed it somewhere else? Like in a specific path. Any more assistance would be much appreciated :) Maybe I have to install Ubuntu in a virtual machine for the time being until is Windows compatible, whatever you think is better @lcpt. |
But, you already have an Ubuntu virtual machine. You can clone Ubuntu inside that virtual machine using git:
This will clone the repository inside Ubuntu. @ebrahimraeyat you have already installed XC inside a Windows Ubuntu Subsystem, could you confirm that I'm not wrong? |
Just to be sure, this is what I did:
Maybe I did something wrong. |
Why the step 7? |
Aaaaah, maybe that was it. I thought I had to allocate it somewhere because I didn't know where |
Well, that was the problem indeed. I installed it now in the current user directory and not in other drive. Now I have encountered an error in 98% of This is the error
Thanks again. |
Hi again. Well this is a known problem. The GMSH version that comes with the Ubuntu package is too old :( The problem is easy to solve but requires some explanation. I'll update the Sorry for the inconvenience. |
Thanks for your assistance @lcpt! I run the script
Then I tried to run the verification tests and had the same python problem and edited I am getting close, but surely there is something that I did wrong here :( |
I think you've Python 2 as the default Python in your system. To set Python 3 as the default, you can simply install the
And the problem will be solved. |
I'll add a remark about this to the installation instructions. |
As an alternative method, you can execute this command:
|
excuse me for delay response. Yes, The ubuntu installed with wsl behave like real Ubuntu, except for Gui. with windows 11, it seems it is not needed to install x11 server like xming, only a driver for your graphic card need to be installed https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps |
Could you finish the installation? |
Hello @mihdicaballero. This are steps that I done for installing: 1- remove gmsh that installed in ubuntu:
2- search for gmsh.h, maybe you must install locate
and then remove those. for mine:
3- install gmsh with pip:
4- link some gmsh with installed gmsh in my home path:
5- finally install xc:
hope this can help. |
Hi. I've added some checking to the We are enhancing a bit the whole process, I think :) |
Yes, no problem. I reset Ubuntu and started again the whole process to make sure I'm going well. So far, what I've done is:
I had an error in step 8. There was missing "" in line 16 of Once I finish with the dependencies, I'll keep going. |
You're right, I've fixed this: |
Great news! I could install XC I believe, This was my procedure:
I tried running first the full script to install, but it failed because of that gmsh version problem, that I had to fix with that particular script that you made. Maybe that could be inside the complete install script? Regarding the tests, almost all tests passed. I'll paste the tests that did not, maybe I did not get something correctly installed, since the error is always "connection refused". Since it is kinda long, I'll attach a txt with the log. Thanks a lot. |
Excellent, I also get those errors after installation. I think it is related to Gui part. |
Thanks to you. Apparently this issue is related to the use of Matplotlib when the XServer is not running, if you don't mind, I'll close this issue and open a new one using your test results. |
I've opened the new issue. |
Hi! I'm trying to install xc in my windows following the steps described here and got a problem in cmake build. I must say that I'm very ignorant with Ubuntu and I have always worked with Windows, so all this is kinda new.
This is the error
I have no idea what is going on. Maybe it has nothing to do with xc. The directory where I have this installed is: D:\XC\build_xc
Desktop:
Thank you very much for your assistance, I'm really looking forward to start using XC :)
The text was updated successfully, but these errors were encountered: