Hi Eric,<div><br></div><div>Awesome. It works now. Thanks !</div><div><br></div><div>Best,</div><div>Cheng<br><br><div class="gmail_quote">On Mon, Nov 26, 2012 at 8:24 AM, Eric Heien <span dir="ltr"><<a href="mailto:emheien@ucdavis.edu" target="_blank">emheien@ucdavis.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Python on Mac OS does some things wrong in terms of link and compile flags. To fix this, delete "/System/Library/Frameworks/" in the Makefile on that line. Currently it is trying to link a directory which is why it returns errno=22.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Eric<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Nov 25, 2012, at 10:56 PM, Cheng Cheng wrote:<br>
<br>
> Hi Eric,<br>
><br>
> Oh, yes. That works. Thanks ! But some other weird things happened when it tried to link. It which gives the info like below. PS, I am on Mac OS 10.8, the newest version of Mac OS. I worked fine on linux.<br>
><br>
> **************<br>
> Making all in bin<br>
> /bin/sh ../libtool --tag=CC --mode=link mpicc -g -O2 -o pycitcoms -u _PyMac_Error /System/Library/Frameworks/ -framework Python \<br>
> pycitcoms-pycitcoms.o dummy.o ../module/libCitcomSLibmodule.a ../lib/libCitcomS.a \<br>
> \<br>
> \<br>
> -ldl -framework CoreFoundation \<br>
> -lz \<br>
><br>
> libtool: link: mpicc -g -O2 -o pycitcoms -u _PyMac_Error /System/Library/Frameworks/ pycitcoms-pycitcoms.o dummy.o -framework Python ../module/libCitcomSLibmodule.a ../lib/libCitcomS.a -ldl -framework CoreFoundation -lz<br>
> ld: can't map file, errno=22 for architecture x86_64<br>
> collect2: ld returned 1 exit status<br>
> make[2]: *** [pycitcoms] Error 1<br>
> make[1]: *** [all-recursive] Error 1<br>
> make: *** [all] Error 2<br>
><br>
> **************<br>
><br>
> Best,<br>
> Cheng<br>
><br>
> On Sun, Nov 25, 2012 at 10:06 PM, Eric Heien <<a href="mailto:emheien@ucdavis.edu">emheien@ucdavis.edu</a>> wrote:<br>
> Hi Cheng,<br>
><br>
> Try editing the Makefile so there is a space between the path and framework command, in other words:<br>
><br>
> "/System/Library/Frameworks/ -framework Python"<br>
><br>
> -Eric<br>
><br>
> On Nov 25, 2012, at 11:59 AM, Cheng Cheng wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > I met some problems when compiling with Pyre framework. It always gives the information as below and tells me missing "/System/Library/Frameworks/-framework". My python version is 2.6 and the configure procedure is OK.<br>
> ><br>
> > *********************<br>
> > /bin/sh ../libtool --tag=CC --mode=link mpicc -g -O2 -o pycitcoms -u _PyMac_Error /System/Library/Frameworks/-framework Python \<br>
> > pycitcoms-pycitcoms.o dummy.o ../module/libCitcomSLibmodule.a ../lib/libCitcomS.a \<br>
> > \<br>
> > \<br>
> > -ldl -framework CoreFoundation \<br>
> > -lz \<br>
> ><br>
> > libtool: link: mpicc -g -O2 -o pycitcoms -u _PyMac_Error /System/Library/Frameworks/-framework Python pycitcoms-pycitcoms.o dummy.o ../module/libCitcomSLibmodule.a ../lib/libCitcomS.a -ldl -framework CoreFoundation -lz<br>
> > i686-apple-darwin11-llvm-gcc-4.2: /System/Library/Frameworks/-framework: No such file or directory<br>
> > i686-apple-darwin11-llvm-gcc-4.2: Python: No such file or directory<br>
> > make[2]: *** [pycitcoms] Error 1<br>
> > make[1]: *** [all-recursive] Error 1<br>
> > make: *** [all] Error 2<br>
> > ***********************<br>
> ><br>
> > Best,<br>
> > Cheng<br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > CIG-MC mailing list<br>
> > <a href="mailto:CIG-MC@geodynamics.org">CIG-MC@geodynamics.org</a><br>
> > <a href="http://geodynamics.org/cgi-bin/mailman/listinfo/cig-mc" target="_blank">http://geodynamics.org/cgi-bin/mailman/listinfo/cig-mc</a><br>
><br>
><br>
><br>
><br>
> --<br>
> ______________________________________________<br>
> Cheng Cheng<br>
> PHD Candidate<br>
> University of California - Berkeley<br>
> Department of Earth and Planetary Science<br>
> Berkeley Seimological Lab<br>
> 179 McCone Hall<br>
> Cellphone: <a href="tel:%28510%29-816-1345" value="+15108161345">(510)-816-1345</a><br>
> _______________________________________________<br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>______________________________________________<br>Cheng Cheng<br></div><div>PHD Candidate</div><div>University of California - Berkeley</div><div>
Department of Earth and Planetary Science</div><div>Berkeley Seimological Lab</div><div>179 McCone Hall</div><div>Cellphone: (510)-816-1345</div><div>_______________________________________________</div><br>
</div>