>>python setup.py install
を実行した所、
running install
Because Pylearn2 is under heavy development, we generally do not advice using the `setup.py install` command. Please consider using the `setup.py develop` command instead for the following reasons:
1. Using `setup.py install` creates a copy of the Pylearn2 source code in your Python installation path. In order to update Pylearn2 afterwards you will need to rerun `setup.py install` (!). Simply using `git pull` to update your local copy of Pylearn2 code will not suffice.
2. When using `sudo` to install Pylearn2, all files, including the tutorials, will be copied to a directory owned by root. Not only is running tutorials as root unsafe, it also means that all Pylearn2-related environment variables which were defined for the user will be unavailable.
Pressing enter will continue the installation of Pylearn2 in `develop` mode instead. Note that this means that you need to keep this folder with the Pylearn2 code in its current location. If you know what you are doing, and are very sure that you want to install Pylearn2 using the `install` command instead, please type `install`.
Installation mode: [develop]/install/cancel:
と、出力されinstallを実行した所、
running build
running build_py
running build_ext
building 'pylearn2.utils._window_flip' extension
C compiler: gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
compile options: '-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
gcc-4.2: pylearn2/utils/_window_flip.c
i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccGQGOMD.out
i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccGQGOMD.out
error: Command "gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pylearn2/utils/_window_flip.c -o build/temp.macosx-10.6-intel-2.7/pylearn2/utils/_window_flip.o" failed with exit status 1
とgcc4.2の部分でエラーが発生しました。
最新のgccは4.9であるため、バージョンによる失敗なんでしょうか?
ちなみにdevelopを実行しても同様です。
対応策をよろしくお願い致します。
ここでエラーが出ている原因は次です。
> 686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory
> i686-apple-darwin10-gcc-4.2.1: no input files
・pylearn2/utils/_window_flip.c が無い
→ pylearn2 のファイルが何らかの理由で不足しています。
・最新のgccは4.9であるため、バージョンによる失敗なんでしょうか?
上記ファイルがないため no input files でエラーになっています。
"現時点"ではgccのバージョンは関係有りません。注:将来関係してくる可能性を否定する物では有りません。
対策:
・pylearn2のファイル群を適切に取得してくる必要が有ります。
質問者様がどのようなコマンドを実行してきたのか不明なので見当違いかと思いますが:
質問の文の中に using `git pull` to update your local copy of Pylearn2 code will not suffice.
すなわち、一度’Using `setup.py install`’を使ってしまったら 'git pull'はnot suffuceと書いてあるのですが、その辺は大丈夫ですか?
そんなにしょぼいはずは無いですね。ごめんなさい。
質問者
補足
>>git clone git://github.com/lisa-lab/pylearn2.git
Cloning into 'pylearn2'...
remote: Counting objects: 37909, done.
remote: Total 37909 (delta 0), reused 1 (delta 0)
Receiving objects: 100% (37909/37909), 11.17 MiB | 153.00 KiB/s, done.
Resolving deltas: 100% (27554/27554), done.
Checking connectivity... done.
>> python setup.py develop
running develop
running egg_info
creating pylearn2.egg-info
writing requirements to pylearn2.egg-info/requires.txt
writing pylearn2.egg-info/PKG-INFO
writing top-level names to pylearn2.egg-info/top_level.txt
writing dependency_links to pylearn2.egg-info/dependency_links.txt
writing manifest file 'pylearn2.egg-info/SOURCES.txt'
reading manifest file 'pylearn2.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pylearn2.egg-info/SOURCES.txt'
running build_ext
building 'pylearn2.utils._window_flip' extension
C compiler: gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
creating build
creating build/temp.macosx-10.6-intel-2.7
creating build/temp.macosx-10.6-intel-2.7/pylearn2
creating build/temp.macosx-10.6-intel-2.7/pylearn2/utils
compile options: '-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c'
gcc-4.2: pylearn2/utils/_window_flip.c
i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccaXhBF6.out
i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccaXhBF6.out
error: Command "gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pylearn2/utils/_window_flip.c -o build/temp.macosx-10.6-intel-2.7/pylearn2/utils/_window_flip.o" failed with exit status 1
補足
>>git clone git://github.com/lisa-lab/pylearn2.git Cloning into 'pylearn2'... remote: Counting objects: 37909, done. remote: Total 37909 (delta 0), reused 1 (delta 0) Receiving objects: 100% (37909/37909), 11.17 MiB | 153.00 KiB/s, done. Resolving deltas: 100% (27554/27554), done. Checking connectivity... done. >> python setup.py develop running develop running egg_info creating pylearn2.egg-info writing requirements to pylearn2.egg-info/requires.txt writing pylearn2.egg-info/PKG-INFO writing top-level names to pylearn2.egg-info/top_level.txt writing dependency_links to pylearn2.egg-info/dependency_links.txt writing manifest file 'pylearn2.egg-info/SOURCES.txt' reading manifest file 'pylearn2.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pylearn2.egg-info/SOURCES.txt' running build_ext building 'pylearn2.utils._window_flip' extension C compiler: gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes creating build creating build/temp.macosx-10.6-intel-2.7 creating build/temp.macosx-10.6-intel-2.7/pylearn2 creating build/temp.macosx-10.6-intel-2.7/pylearn2/utils compile options: '-I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c' gcc-4.2: pylearn2/utils/_window_flip.c i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccaXhBF6.out i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files i686-apple-darwin10-gcc-4.2.1: pylearn2/utils/_window_flip.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files lipo: can't figure out the architecture type of: /var/folders/i0/i013vMBRH8O06CgW9BFy3E+++TM/-Tmp-//ccaXhBF6.out error: Command "gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pylearn2/utils/_window_flip.c -o build/temp.macosx-10.6-intel-2.7/pylearn2/utils/_window_flip.o" failed with exit status 1