[Trilinos-Users] Trilinos CVS version fails to install
Daniele Avitabile
d.avitabile at gmail.com
Wed Sep 10 08:29:26 MDT 2008
If you look carefully at my error, it looks like perl is bothered by the
occurrence of "++" in the string
/Users/enxda/Programs/C++
I believe "+" is a metacharacter. One situation in which perl would throw a
nested quantifier in regexp is if you have a $foo string that contains a
metacharacter, in this case the substring "++". I believe if you run
something like
/.$foo/
and $foo was "++", Perl could want to interpolate the string into /.++/ and
this would raise an error because ".++" could be interpreted as a regexp.
I believe this can be avoided by escaping before $foo via \Q$foo$\E.
Does it make sense to you?
On Tue, Sep 9, 2008 at 11:17 PM, Daniele Avitabile <d.avitabile at gmail.com>wrote:
> Hi everybody,
>
> I am just trying to install the CVS version of Trilinos. I can configure it
> and compile it correctly. The make install command, though, exits in an
> error. It occurred to me on two different platforms, using a configure
> script that has always been working so far. The last lines of the make
> isntall command read
>
> cp ./Makefile.export.epetra /Users/enxda/Programs/C++/
> SwiftHohenberg/Worms/trilinos-development/Trilinos/MAC_MPI/build/include/.
> perl ../../../packages/epetra/config/replace-install-prefix.pl \
>
> --exec-prefix=/Users/enxda/Programs/C++/SwiftHohenberg/Worms/trilinos-development/Trilinos/MAC_MPI/build
> \
> --my-export-makefile=Makefile.export.epetra \
>
> --my-abs-top-srcdir=/Users/enxda/Programs/C++/SwiftHohenberg/Worms/trilinos-development/Trilinos/MAC_MPI/packages/epetra/../../../packages/epetra
> \
>
> --my-abs-incl-dirs=/Users/enxda/Programs/C++/SwiftHohenberg/Worms/trilinos-development/Trilinos/MAC_MPI/packages/epetra/src:/Users/enxda/Programs/C++/SwiftHohenberg/Worms/trilinos-development/Trilinos/MAC_MPI/packages/epetra/../../../packages/epetra/src
> \
>
> --my-abs-lib-dirs=/Users/enxda/Programs/C++/SwiftHohenberg/Worms/trilinos-development/Trilinos/MAC_MPI/packages/epetra/src
> \
>
> --dep-package-abs-builddirs=/Users/enxda/Programs/C++/SwiftHohenberg/Worms/trilinos-development/Trilinos/MAC_MPI/packages/epetra/../teuchos
> Nested quantifiers in regex; marked by <-- HERE in
> m/([^\w\d_]|^)/Users/enxda/Programs/C++ <-- HERE
> /SwiftHohenberg/Worms/trilinos-development/Trilinos/MAC_MPI/packages/epetra/../teuchos([^\w\d_]|$)/
> at
> /Users/enxda/Programs/C++/SwiftHohenberg/Worms/trilinos-development/Trilinos/MAC_MPI/packages/epetra/../../../packages/epetra/config/token-replace.pl
> line 36.
> Died at ../../../packages/epetra/config/replace-install-prefix.pl line 88.
> make[5]: *** [install-exec-hook] Error 255
> make[4]: *** [install-exec-am] Error 2
> make[3]: *** [install-am] Error 2
> make[2]: *** [install-recursive] Error 1
> make[1]: *** [install-recursive] Error 1
> make: *** [install-recursive] Error 1
>
>
> Any idea as to why this happens? I would need to have the CVS version
> installed.
>
> Best.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://software.sandia.gov/mailman/private/trilinos-users/attachments/20080910/0e32ebd2/attachment.html
More information about the Trilinos-Users
mailing list