Installing problems
Teo
teodor... at gmail.com
Tue Jul 29 10:15:46 UTC 2008
Dear Alessio,
Axel provided a patch for get_arch_code in order to make it posix
compliant.
Check it. It should work now.
Cheers
Teo
On Jul 26, 2:05 pm, Krzysztof Sakrejda-Leavitt
<krzysztof... at gmail.com> wrote:
> sersunzo wrote:
> > Hi everybody,
>
> > I downloaded cpk2 and I try to install it on both our cluster computer
> > and my pc. I'm less then a newbie in linux and, of course, I couldn't
> > manage to install neither of the two. I hope my questions are not too
> > silly.
> > In case of my pc (OS ubuntu 8.04) the problem starts immediately. If I
> > run the script get_arch_code I get the following error message:
>
> > ./get_arch_code: 98: [[: not found
>
> > ./get_arch_code: 98: [[: not found
>
> This one's easy: Ubuntu uses "dash" as the default shell and the "[["
> construct that the script calls is specific to the "bash" shell. That's
> the source of the error. Ubuntu does have the bash shell installed, but
> it is not linked to from /bin/sh ... which is what most scripts use to
> invoke a shell. Check with the Ubuntu forums/FAQ's how to set the
> default shell to bash or.... sometimes you can just run the scripts with
> SHELL=/bin/bash and all will be well unless /bin/sh is hardcoded into
> the scripts... you could also temporarily change the link for your
> system... but someone who knows the code better will have to tell you
> which workaround is best...
>
> No idea about the other question.
>
> Krzysztof
>
> > ./get_arch_code: 98: [[: not found
>
> > ./get_arch_code: 98: [[: not found
>
> > Linux-i686
>
> > In the cluster, at least it start to do something after make
> > ARCH=Linux-x86-64-pgi VERSION=sopt
> > but than I got the following error message:
>
> > pgf90-Fatal-/share/apps/pgi/linux86-64/6.1/bin/pgf901 TERMINATED by
> > signal 11
>
> > Arguments to /share/apps/pgi/linux86-64/6.1/bin/pgf901
>
> > /share/apps/pgi/linux86-64/6.1/bin/pgf901 qs_scf_post.f90 -opt 2 -
> > terse 1 -inform warn -nohpf -nostatic -x 19 0x400000 -quad -x 59 4 -x
> > 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124
> > 0x1000 -x 57 0xfb0000 -x 58 0x78031040 -x 70 0x6c00 -x 47 0x400000 -x
> > 48 4608 -x 49 0x100 -x 120 0x200 -stdinc /share/apps/pgi/
> > linux86-64/6.1/include:/usr/local/include:/usr/lib/gcc/x86_64-redhat-
> > linux/3.4.6/include:/usr/lib/gcc/x86_64-redhat-linux/3.4.6//include:/
> > usr/include -def unix -def __unix -def __unix__ -def linux -def
> > __linux -def __linux__ -def __inline__= -def __NO_INLINE__ -def
> > __NO_MATH_INLINES -def __x86_64__ -def
> > __LONG_MAX__=9223372036854775807L -def '__SIZE_TYPE__=unsigned long
> > int' -def '__PTRDIFF_TYPE__=long int' -def __THROW= -def __amd64__ -
> > freeform -vect 48 -freeform -quad -x 119 0x10000000 -output /tmp/
> > pgf90aaaaappgaw.ilm
>
> > make[1]: *** [qs_scf_post.o] Error 127
>
> > make[1]: *** Waiting for unfinished jobs....
>
> > make: *** [build] Error 2
>
> > Here is the Linux-x86-64-pgi.sopt file
>
> > CC = cc
>
> > CPP = cpp
>
> > FC = pgf90 -Mfree
>
> > LD = pgf90
>
> > AR = ar -r
>
> > DFLAGS = -D__PGI -D__FFTSG\
>
> > -D__FFTW2
>
> > CPPFLAGS = -traditional -C $(DFLAGS) -P
>
> > FCFLAGS = -fastsse -tp amd64
>
> > LDFLAGS = $(FCFLAGS)
>
> > LIBS = -lacml -ldfftw
>
> > OBJECTS_ARCHITECTURE = machine_pgi.o
>
> > Probably I'm doing or missing something very stupid, but I couldn't
> > really find any piece of information can help to understanding these
> > things (any suggestions?). The easiest solution would be waiting for
> > the cluster administrator
> > to be back form vacation, but maybe in this way I can learn something.
> > I don't know if it happens only here, but the administrators sometimes
> > like to solve your problems without explaining to you how they did ;-)
>
> > Tia
>
> > Alessio
More information about the CP2K-user
mailing list