[Novalug] a make question

James Ewing Cottrell 3rd JECottrell3@Comcast.NET
Tue Jan 27 11:56:46 EST 2009


Offhand, I would say that you are trying to build the software In Place.

Don't Do That.

Build in /opt/src or /usr/local/src, or use the RPM build directories, 
/usr/src/redhat if you are using RPM Source Packages.

JIM

Megan Larko wrote:
> Greetings Folks,
> 
> This question is not specifically linux but I think there is expertise on the List so I will ask anyway.
> 
> I am building some code on a CentOS 5.2 system (there's the linux!).  The ./configure worked without 
> error specifying a --prefix=/path/to/install/directory.   The subsequent "make" command did not give 
> any error return codes either.   The final "make install", run from the same directory as both the 
> ./configure and the make, returned the following error:
> 
> [root@crew01 mpich2-1.0.8]# make install
> if [ ! -d /opt/mpich2/absoft/10.0/mpich2-1.0.8 ] ; then mkdir -p 
> /opt/mpich2/absoft/10.0/mpich2-1.0.8 ; fi
> if [ ! -d /opt/mpich2/absoft/10.0/mpich2-1.0.8/share ] ; then mkdir -p 
> /opt/mpich2/absoft/10.0/mpich2-1.0.8/share ; fi
> if [ ! -d /opt/mpich2/absoft/10.0/mpich2-1.0.8/share/doc/ ] ; then mkdir -p 
> /opt/mpich2/absoft/10.0/mpich2-1.0.8/share/doc/ ; fi
> if [ ! -d /opt/mpich2/absoft/10.0/mpich2-1.0.8/share/man ] ; then mkdir -p 
> /opt/mpich2/absoft/10.0/mpich2-1.0.8/share/man ; fi
> if [ ! -d /opt/mpich2/absoft/10.0/mpich2-1.0.8/include ] ; then mkdir -p 
> /opt/mpich2/absoft/10.0/mpich2-1.0.8/include ; fi
> if [ ! -d /opt/mpich2/absoft/10.0/mpich2-1.0.8 ] ; then mkdir -p 
> /opt/mpich2/absoft/10.0/mpich2-1.0.8 ; fi
> if [ ! -d /opt/mpich2/absoft/10.0/mpich2-1.0.8/lib ] ; then mkdir -p 
> /opt/mpich2/absoft/10.0/mpich2-1.0.8/lib ; fi
> make install-local
> make[1]: Entering directory `/opt/mpich2/absoft/10.0/mpich2-1.0.8'
> if [ "no" = "yes" ] ; then \
>              /usr/bin/install -c -m 644 src/mpi/debugger/libtvmpich2.so \
>                          /opt/mpich2/absoft/10.0/mpich2-1.0.8/lib/libtvmpich2.so ; fi
> if [ -n "" ] ; then \
>              for pm in  /dev/null ; do \
>                  if [ -d src/pm/$pm ] ; then \
>                       (cd src/pm/$pm && make install-alt ) ; fi ; \
>              done ; \
>          fi
> make[1]: Leaving directory `/opt/mpich2/absoft/10.0/mpich2-1.0.8'
> /usr/bin/install -c -m 644 src/include/mpi.h /opt/mpich2/absoft/10.0/mpich2-1.0.8/include/mpi.h
> /usr/bin/install -c -m 644 lib/libmpich.a /opt/mpich2/absoft/10.0/mpich2-1.0.8/lib/libmpich.a
> /usr/bin/install: `lib/libmpich.a' and `/opt/mpich2/absoft/10.0/mpich2-1.0.8/lib/libmpich.a' are the 
> same file
> make: *** [install] Error 1
> 
> The error is that the files are the same.   Well yeah,  one is the local PATH lib/libmpich.a and the 
> other is the full PATH /opt/mpich2/absoft/10.0/mpich2-1.0.8/lib/libmpich.a.   I tried to run the 
> "make install" with a --keep-going option (to see if there were any more "gotchas" after this, but 
> the "make install" would not get past this particular error.  I don't understand why this is even an 
> error for the make installation program.
> 
> Perhaps if I understood I could work it better.
> 
> Can any GNU make 3.81 folks enlighten me please?
> 
> Thanks,
> megan
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug
> 
> 
> ------------------------------------------------------------------------
> 
> 
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.176 / Virus Database: 270.10.13/1916 - Release Date: 1/26/2009 7:08 AM
> 




More information about the Novalug mailing list