2017-02-10 3 views
0

나는 clion을 다운로드하고 jetbeans에서 제공하는 설치 가이드를 통해갔습니다 : https://www.jetbrains.com/help/clion/2016.3/quick-tutorial-on-configuring-clion-on-windows.html 환경으로 cygwin과 minGW를 모두 설정했지만 프로그램이 실행되지 않았습니다. 나는이 질문을했다 : How to setup Clion for compile and RUN는 clion에서 어떤 프로그램도 실행할 수 없습니다

나는 경로에있는 cygwin와 minGW의 전화 번호부를 역시 추가했다, 그러나 아직도 나는 나의 프로그램을 달릴 수 없다.

그것은이 긴 오류가 발생합니다 :

그것은 다음과 같은 출력 실패
CMake Error at /cygdrive/c/Users/dell/.CLion2016.3/system/cygwin_cmake/share/cmake-3.6.3/Modules/CMakeTestCCompiler.cmake:61 (message): 
    The C compiler "/cygdrive/c/MinGW/bin/gcc.exe" is not able to compile a 
    simple test program. 

다음 CLion 제품을 다운로드 할 때 나는 또한 몇 가지 문제에 직면

Change Dir: /cygdrive/c/Users/dell/Desktop/jetBeans/c_c++/cmake-build-debug/CMakeFiles/CMakeTmp 



    Run Build Command:"/usr/bin/make.exe" "cmTC_2284f/fast" 

    /usr/bin/make -f CMakeFiles/cmTC_2284f.dir/build.make 
    CMakeFiles/cmTC_2284f.dir/build 

    make[1]: Entering directory 
    '/cygdrive/c/Users/dell/Desktop/jetBeans/c_c++/cmake-build-debug/CMakeFiles/CMakeTmp' 


    Building C object CMakeFiles/cmTC_2284f.dir/testCCompiler.c.o 

    /cygdrive/c/MinGW/bin/gcc.exe -o 
    CMakeFiles/cmTC_2284f.dir/testCCompiler.c.o -c 
    /cygdrive/c/Users/dell/Desktop/jetBeans/c_c++/cmake-build-debug/CMakeFiles/CMakeTmp/testCCompiler.c 


    gcc.exe: error: 
    /cygdrive/c/Users/dell/Desktop/jetBeans/c_c++/cmake-build-debug/CMakeFiles/CMakeTmp/testCCompiler.c: 
    No such file or directory 

    gcc.exe: fatal error: no input files 

    compilation terminated. 

    make[1]: *** [CMakeFiles/cmTC_2284f.dir/build.make:66: 
    CMakeFiles/cmTC_2284f.dir/testCCompiler.c.o] Error 1 

    make[1]: Leaving directory 
    '/cygdrive/c/Users/dell/Desktop/jetBeans/c_c++/cmake-build-debug/CMakeFiles/CMakeTmp' 


    make: *** [Makefile:126: cmTC_2284f/fast] Error 2 





    CMake will not be able to correctly generate this project. 
Call Stack (most recent call first): 
    CMakeLists.txt:2 (project) 


-- Configuring incomplete, errors occurred! 
See also "/cygdrive/c/Users/dell/Desktop/jetBeans/c_c++/cmake-build-debug/CMakeFiles/CMakeOutput.log". 
See also "/cygdrive/c/Users/dell/Desktop/jetBeans/c_c++/cmake-build-debug/CMakeFiles/CMakeError.log". 

[Previous CMake output restored: 11-02-2017 04:45] 
+2

[ask]를 참조하십시오. 질문자가 질문 할 때 Q & A 사이트가 가장 효과적입니다. 당신이 그것을 놓친 경우에, 당신은 질문조차하지 않았다. – IInspectable

+0

@IInspectable 미안하지만, 그냥 clion이 프로그램을 운영하기를 원합니다. 도와주세요. – ShubhamS

답변

1

, 그것이 작동하지 않았기 때문에 나를 위해 많은 시간을. 그러나 나는이 비디오를 발견했다 :

Install & Configure CLion Student Copy|| best IDE for C/C++.

내가 한 것은 CLION MinGW를 제거한 것이므로 처음부터 다시 시작했습니다. 아마도 최선의 선택은 아니었지만 문제를 정확히 파악할 수 없었기 때문에 위의 비디오를 따라 다시 설치했습니다. CLion은 지금 나를 위해 일합니다. 이 비디오는 Windows 운영 컴퓨터에 CLion을 설치하기위한 것입니다.

그냥 권장 사항입니다. 먼저 비디오를보고 실수를했는지 확인할 수 있습니다. 비디오의 강사가 어떻게했는지 비교하십시오. 특정 패키지를 가져 오는 것과 같은 것을 놓친 경우 (이 비디오는 MinGW를 사용함), 이것이 잘못된 곳입니다. 그러면 문제를 해결할 수도 있습니다. 오류를 찾아 낼 수 없다면 다시 설치하십시오. 행운을 빕니다!


편집 : 왜 MinGW와 cygwin을 설치 했습니까? 당신은 그들 중 하나만 필요합니다.

+0

정말 고마워요. 그것은 효과가 있었다. 비디오를 시청 한 후에 설치되지 않은 패키지가 거의 설치되지 않았습니다. minGW를 설치했지만 그 오류가 계속 발생하여 cygwin을 설치했는지 확인했습니다. – ShubhamS

관련 문제