photon icon indicating copy to clipboard operation
photon copied to clipboard

Issues with compling photon through make file in ubuntu os.

Open anirudhvyas21 opened this issue 11 years ago • 5 comments

I wanted to compile photon on my 64 bit ubuntu os , when i executed the make command , there were some missing packages which were to be imported after that when i again executed make then compiling was unsuccessful showing this:-

anirudh@ubuntu:~/Downloads/photon-master$ make Pulling sources from bintary... Downloading sha1-all... Traceback (most recent call last): File "/home/anirudh/Downloads/photon-master/support/pullsources/pullsources.py", line 101, in p.pull(args[0]) File "/home/anirudh/Downloads/photon-master/support/pullsources/pullsources.py", line 78, in pull package_file_path = self.downloadFile(sources_dir, 'sha1-all') File "/home/anirudh/Downloads/photon-master/support/pullsources/pullsources.py", line 61, in downloadFile with open(file_path, 'wb') as handle: IOError: [Errno 2] No such file or directory: '/home/anirudh/Downloads/photon-master/stage/SOURCES/sha1-all' make: *** [sources] Error 1

please provide a solution as soon as possible , so that i can compile successfully.

anirudhvyas21 avatar Jun 03 '15 18:06 anirudhvyas21

Have you tried 'sudo make'?

toliaqat avatar Jun 04 '15 08:06 toliaqat

Even tried doing that issue still not resolved if possible please also explain a bit about the error.

anirudh@ubuntu:~/Downloads/photon-master$ sudo make [sudo] password for anirudh: Pulling sources from bintary... Downloading sha1-all... Traceback (most recent call last): File "/home/anirudh/Downloads/photon-master/support/pullsources/pullsources.py", line 101, in p.pull(args[0]) File "/home/anirudh/Downloads/photon-master/support/pullsources/pullsources.py", line 78, in pull package_file_path = self.downloadFile(sources_dir, 'sha1-all') File "/home/anirudh/Downloads/photon-master/support/pullsources/pullsources.py", line 61, in downloadFile with open(file_path, 'wb') as handle: IOError: [Errno 2] No such file or directory: '/home/anirudh/Downloads/photon-master/stage/SOURCES/sha1-all' make: *** [sources] Error 1

anirudhvyas21 avatar Jun 04 '15 09:06 anirudhvyas21

I haven't seen this error before. The script is trying to create ./stage/SOURCES/sha1-all but could not for some reason. Make sure you have stage/SOURCES folders present and if not then create them manually which script is suppose to be doing itself. After creating these two folders try again. Also make sure you are not missing anything in https://github.com/vmware/photon/blob/master/docs/build-photon.md

toliaqat avatar Jun 05 '15 19:06 toliaqat

Thanks a lot! toliaqat your advice helped photon can only be compiled from the home directory , i was trying it from downloads

anirudhvyas21 avatar Jun 08 '15 10:06 anirudhvyas21

Thanks for your update.

toliaqat avatar Jun 12 '15 06:06 toliaqat