뭐든 처음 적응하기가 제일 어려운 것 같다.
JCC compile하는데 자꾸 에러가 나서 보니까 XCode10.4를 사용하기 때문에 나오는 에러
/Developer/SDKs 에서 확인되는 버전은 10.5, 10.6 뿐인데 말이다.
구글링 결과 10.4 버전을 설치 안했기 때문ㅠ
설치CD에 있는 Xcode에서 옵션을 선택하면 바로 끝이다.
이거 하나 때문에 무려 3시간 날렸다…ㅜ
작업 중에 발견한 미스테리
$ whereis python
>> /usr/bin/python
$ /usr/bin/python
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
>>>
$ python
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
>>>
두 실행 명령어의 버전이 다르다…
그래서 두 가지 경우에서 sys.path를 봤더니
Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import sys
>>> sys.path
[”, ‘/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg’, ‘/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/py-1.2.0-py2.6.egg’, ‘/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/JCC-2.5-py2.6-macosx-10.3-fat.egg’, ‘/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip’, ‘/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6’, ‘/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin’, ‘/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac’, ‘/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages’, ‘/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk’, ‘/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old’, ‘/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload’, ‘/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages’]
>>> quit()
$ /usr/bin/python
Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import sys
>>> sys.path
[”, ‘/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python26.zip’, ‘/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6’, ‘/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-darwin’, ‘/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac’, ‘/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/plat-mac/lib-scriptpackages’, ‘/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python’, ‘/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk’, ‘/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-old’, ‘/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload’, ‘/Library/Python/2.6/site-packages’, ‘/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC’, ‘/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode’]
>>>
버전 낮은게 /System에 설치되어 있음을 확인.
=======================
구글링 결과 2.6.1버전은 Leopard와 함께 설치되는 기본 버전이었고, 그것을 모르고
나는 2.6.4버전을 다시 설치한 꼴.
2.6.4만 지우려고 아무를 애를 써도 안지워졌고,
결국 그냥 전체 포멧…
2 comments
안녕하세요..
설치 후 컴파일 에러가 나는데요… 힘드네요 ~~
xcode3.2.4 와 iso_sdk4.1.dmg 사이트에서 다운받으면 SDKS폴더에 10.5 와 10.6만 설치됩니다..
혹시 10.4도 깔려있는데 컴파일 에러가 나네요
Internal error occurred while creating dependency graph: ASSERTION FAILURE in /SourceCache/DevToolsBase/DevToolsBase-1705/pbxcore/Target.subproj/PBXTargetBuildContext.m:2061
Details: Assertion failed: [filePath isAbsolutePath]
Object:
Method: -setHeadermapToolInvocation:forFilePath:
Thread:{name = (null), num = 6}
Backtrace:
0 0x00000001002857b8 -[PBXTargetBuildContext(DependencyGraphEvents) handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DevToolsCore)
1 0x00000001002dab1f _XCAssertionFailureHandler (in DevToolsCore)
2 0x0000000100282322 -[PBXTargetBuildContext setHeadermapToolInvocation:forFilePath:] (in DevToolsCore)
3 0x0000000100141a6b -[XCCompilerSpecification computeDependenciesForFilePath:ofType:outputDirectory:inTargetBuildContext:] (in DevToolsCore)
4 0x000000010015ba6d -[PBXTargetBuildContext copyFileAtPath:toPath:] (in DevToolsCore)
5 0x0000000100373a3e +[XCCodeSignContext defineCodeSignAuxiliaryFilesInTargetBuildContext:] (in DevToolsCore)
6 0x0000000114671591
7 0x000000010012d0c9 -[XCProductTypeSpecification computeDependenciesInTargetBuildContext:] (in DevToolsCore)
8 0x0000000100128a19 -[XCNativeTargetDGSnapshot(DependencyGraphCreation) computeDependenciesInTargetBuildContext:] (in DevToolsCore)
9 0x0000000100124ba5 -[PBXTargetBuildContext createDependencyGraphWithTargetDGSnapshot:] (in DevToolsCore)
10 0x0000000100123b62 -[PBXTargetBuildContext(DependencyGraphEvents) dg_setTargetSnapshot:] (in DevToolsCore)
11 0x00007fff80fabd8c __invoking___ (in CoreFoundation)
12 0x00007fff80fabc5d -[NSInvocation invoke] (in CoreFoundation)
13 0x000000010012357a -[PBXTargetBuildContext(DependencyGraphEvents) processDependencyGraphEvents] (in DevToolsCore)
14 0x00007fff80fabd8c __invoking___ (in CoreFoundation)
15 0x00007fff80fabc5d -[NSInvocation invoke] (in CoreFoundation)
16 0x000000010012309b -[XCInvocationQueue _processNextInvocationInThreadSlotNumber:] (in DevToolsCore)
17 0x0000000100122e0d -[XCInvocationQueue _processInvocationsInThreadSlotNumber:] (in DevToolsCore)
18 0x00007fff8429aea9 __NSThread__main__ (in Foundation)
19 0x00007fff85799456 _pthread_start (in libSystem.B.dylib)
20 0x00007fff85799309 thread_start (in libSystem.B.dylib)
헐-_- 어떤 일인지 알수가 없네요, 원래 4.1에서는 잘 컴파일되던 소스인가요?
Assertion failed: [filePath isAbsolutePath]
이런 에러가 나는거 보면 뭔가 파일이 없는듯(?) 합니다만 저는 이것만으로는 잘 모르겠네요;;