if your mean is like this I also tried like this
@sed "s/SIESTA_ARCH/{SIESTA_ARCH}/g" version.F90 > temp0.F90
@sed "s/FFLAGS/{FC} {FFLAGS}/g" temp0.F90 > compinfo.F90
again the same error
with this
@sed 's/SIESTA_ARCH/{SIESTA_ARCH}/g' version.F90 > temp0.F90
@sed 's/FFLAGS/{FC} {FFLAGS}/g' temp0.F90 > compinfo.F90
error changed to
Incorporating information about present compilation (compiler and flags)
make[1]: /usr/local/bin/gfortran: Command not found
make[1]: *** [compinfo.o] Error 127
make: *** [version] Error 2
what should I do now?
Thanks
On Wed, Dec 7, 2011 at 7:08 PM, Mohammad Goodarzi <
[email protected]> wrote:
> In fact
>
> I removed the # , if I did it correctly (the place is as follow)
>
> dc_lapack.a: Libs/dc_lapack.f
> @echo "==> Compiling dc_lapack.a in Libs..."
> @(cd Libs ; $(MAKE) dc_lapack.a)
> *#*
> version:
> @echo
> @echo "==> Incorporating information about present compilation
>
> then i error was the same
>
> then I put like this (") and or like this (') instead #
> and the error became like this
>
> Makefile:149: *** missing separator. Stop.
>
> what should I do?
>
> Thanks
>
>
>
>
> 2011/12/7 Marcos Veríssimo Alves <[email protected]>
>
>> Mohammad,
>>
>> I also have the same setting as you, and didn't have any problems
>> compiling 1.3f1, at least not in this part. I remember, though, that I also
>> had this problem when I first tried to compile it. It's likely that you
>> could have your problem solved by replacing the entries in lines 153 and
>> 154 of the Makefile with stuff without the $, just plain text. You'll lose
>> info on the compilation flags and details, but if you do good bookkeeping
>> on that, it's a small price to pay :) If the problem continues, just
>> replace the double quotes (") on the sed expressions of lines 153-154 with
>> single quotes ('), also bearing in mind that no $ characters should appear
>> when you use single quotes.
>>
>> Marcos
>>
>>
>> On Wed, Dec 7, 2011 at 12:55 PM, Mohammad Goodarzi <
>> [email protected]> wrote:
>>
>>> Dear
>>> I need it for Smeagol , and I only should be able to compile this,
>>> I do not have any problem to compile Siesta version 3.1
>>> I just have problem with this one
>>>
>>> My system is Ubuntu
>>> I have MKL
>>> Intel Fortran
>>> and Gfortran
>>>
>>> In fact i install all of them but I do not know how to be sure whether
>>> they work or not?
>>>
>>> I am using of following arch.make
>>>
>>> and I get this error when I make
>>>
>>> Incorporating information about present compilation (compiler and flags)
>>> sed: -e expression #1, char 11: unknown option to `s'
>>> make: *** [version] Error 1
>>> mohammad@ubuntu:~/Desktop/siesta-1.3f1/Src$
>>>
>>>
>>> SIESTA_ARCH=intel-mkl
>>> #
>>> # Intel fortran compiler for linux with mkl optimized blas and lapack
>>> #
>>> # Be sure to experiment with different optimization options.
>>> # You have quite a number of combinations to try...
>>> #
>>> FC=/usr/local/bin/gfortran
>>> #
>>> FFLAGS= -w -mp -tpp5 -O3
>>> FFLAGS_DEBUG= -g
>>> LDFLAGS=-Vaxlib
>>> COMP_LIBS=linalg.a
>>> RANLIB=echo
>>> #
>>> NETCDF_LIBS=
>>> NETCDF_INTERFACE=
>>> DEFS_CDF=
>>> #
>>> MPI_INTERFACE=
>>> MPI_INCLUDE=
>>> DEFS_MPI=
>>> #
>>> GUIDE=/opt/intel/mkl/lib/ia32/libguide.a
>>> LAPACK=/opt/intel/mkl/lib/ia32/libmkl_lapack.a
>>> BLAS=/opt/intel/mkl/lib/ia32/libmkl_p3.a
>>> #G2C=/usr/lib/gcc-lib/i386-redhat-linux/2.96/libg2c.a
>>> LIBS=$(LAPACK) $(BLAS) $(G2C) $(GUIDE) -lpthread
>>> SYS=bsd
>>> DEFS= $(DEFS_CDF) $(DEFS_MPI)
>>> #
>>> .F.o:
>>> $(FC) -c $(FFLAGS) $(DEFS) $<
>>> .f.o:
>>> $(FC) -c $(FFLAGS) $<
>>> .F90.o:
>>> $(FC) -c $(FFLAGS) $(DEFS) $<
>>> .f90.o:
>>> $(FC) -c $(FFLAGS) $<
>>> #
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Wed, Dec 7, 2011 at 6:19 PM, Gomes Rocha <[email protected]>wrote:
>>>
>>>> Dear Mohammad,
>>>>
>>>> are you sure you can only use this version? I highly recommend more
>>>> updated versions.
>>>> Which compiler have you installed in you pc and that you are using for
>>>> this installation?
>>>>
>>>> best
>>>>
>>>> CGRocha
>>>>
>>>> On 7 December 2011 16:31, Mohammad Goodarzi <[email protected]>
>>>> wrote:
>>>> > Dear
>>>> >
>>>> > I am trying to compile Siesta 1.3f but i got this error, can anybody
>>>> help me
>>>> > to solve it?
>>>> >
>>>> > sed: -e expression #1, char 11: unknown option to `s'
>>>> > make: *** [version] Error 1
>>>> >
>>>> >
>>>> > Thanks
>>>>
>>>
>>>
>>
>