error in installation process

56 views
Skip to first unread message

somayeh bakhshaei

unread,
Feb 1, 2012, 3:02:49 AM2/1/12
to jane-...@googlegroups.com
Hello all,

I am a new user in Jane, Is it possible to tell me why i give this error during installation please?

CPPFLAGS=/Share/HLT-14/bakhshaei/ITRC/jane/jane2/include/SRI LDFLAGS=/Share/HLT-14/bakhshaei/ITRC/jane/jane2/lib/  CXX=gcc-4.5.1  MARCH=opteron scons -j7
scons: Reading SConscript files ...
TypeError: Directory /Share/HLT-14/bakhshaei/ITRC/jane/jane2/include/SRI found where file expected.:
  File "/Share/HLT-14/bakhshaei/ITRC/jane/jane2/SConstruct", line 25:
    env.MergeFlags(os.environ.get("CPPFLAGS", ""))
  File "/usr/lib64/python2.7/site-packages/SCons/Environment.py", line 805:
    args = self.ParseFlags(args)
  File "/usr/lib64/python2.7/site-packages/SCons/Environment.py", line 791:
    do_parse(arg, do_parse)
  File "/usr/lib64/python2.7/site-packages/SCons/Environment.py", line 728:
    dict['LIBS'].append(self.fs.File(arg))
  File "/usr/lib64/python2.7/site-packages/SCons/Node/FS.py", line 1274:
    return self._lookup(name, directory, File, create)
  File "/usr/lib64/python2.7/site-packages/SCons/Node/FS.py", line 1253:
    return root._lookup_abs(p, fsclass, create)
  File "/usr/lib64/python2.7/site-packages/SCons/Node/FS.py", line 2123:
    result.diskcheck_match()
  File "/usr/lib64/python2.7/site-packages/SCons/Node/FS.py", line 2269:
    "Directory %s found where file expected.")
  File "/usr/lib64/python2.7/site-packages/SCons/Node/FS.py", line 410:
    raise TypeError, errorfmt % node.abspath


thank you,

---------------------
Best Regards,
S.Bakhshaei

After All you will come ....
And will spread light on the dark desolate world!
O' Kind Father! We will be waiting for your affectionate hands ...

David Vilar

unread,
Feb 1, 2012, 4:17:04 AM2/1/12
to jane-...@googlegroups.com, somayeh bakhshaei
Hi Somayeh,

You are missing the -I and -L in your CPPFLAGS and LDFLAGS respectively.
The correct syntax should be

CPPFLAGS="-I /Share/HLT-14/bakhshaei/ITRC/jane/jane2/include/SRI"
LDFLAGS="-L /Share/HLT-14/bakhshaei/ITRC/jane/jane2/lib/" CXX=gcc-4.5.1
MARCH=opteron scons -j7

Also note that jane automatically looks for the SRI header files in a
SRI subdirectory. I.e. with your call, jane will look into
/Share/HLT-14/bakhshaei/ITRC/jane/jane2/include/SRI/SRI for the files.
If this is not what you want, just delete the last SRI from you CPPFLAGS.

Have fun with jane!

David


--
David Vilar Torres
DFKI GmbH, Alt-Moabit 91c, 10559 Berlin
Tel. (+49) 30 238 95 1845

--------------- Legal Note ---------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Strasse 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender), Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313

somayeh bakhshaei

unread,
Feb 2, 2012, 10:57:38 AM2/2/12
to jane-...@googlegroups.com

Hi David,

The above problem was solved when I export these two as variables separately:

CPPFLAGS &  LDFLAGS

but after a lots of warnings I the installation terminated.

Checking for C++ library NumericalRecipes... no
Checking for C++ library cppunit... no
Not building #/bin/x86_64/optimizer.x86_64-standard because library NumericalRecipes is missing.
Not building #/bin/x86_64/unitTests.x86_64-standard because library cppunit is missing.
scons: done reading SConscript files.
scons: Building targets ...
scons: `options.bash' is up to date.
scons: `options.zsh' is up to date.
scons: `queueSettings.bash' is up to date.
scons: `queueSettings.zsh' is up to date.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLM.h:25,
                 from src/Translation/RandLMInterface.hh:4,
                 from src/Translation/LMInterface.cc:5:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLM.h:25,
                 from src/RandLM/RandLMPreproc.h:25,
                 from src/RandLM/RandLMPreproc.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLM.h:25,
                 from src/RandLM/RandLMStats.h:22,
                 from src/RandLM/RandLMStats.cpp:18:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLM.h:25,
                 from src/RandLM/RandLMPreproc.h:25,
                 from src/RandLM/RandLMStruct.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLM.h:25,
                 from src/RandLM/RandLMStats.h:22,
                 from src/RandLM/RandLMQuantiser.cpp:23:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLM.h:25,
                 from src/RandLM/RandLMPreproc.h:25,
                 from src/RandLM/LogFreqBloomFilter.h:23,
                 from src/RandLM/LogFreqBloomFilter.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLM.h:25,
                 from src/RandLM/RandLMPreproc.h:25,
                 from src/RandLM/LogFreqBloomFilter.h:23,
                 from src/RandLM/LogFreqSketch.h:21,
                 from src/RandLM/LogFreqSketch.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLM.h:25,
                 from src/RandLM/RandLMPreproc.h:25,
                 from src/RandLM/LogFreqBloomFilter.h:23,
                 from src/RandLM/BloomMap.h:21,
                 from src/RandLM/BloomMap.cpp:19:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLM.h:25,
                 from src/RandLM/BloomierFilter.h:20,
                 from src/RandLM/BloomierFilter.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLM.h:25,
                 from src/RandLM/RandLM.cpp:19:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLM.h:25,
                 from src/RandLM/RandLMPreproc.h:25,
                 from src/RandLM/RandLMParams.cpp:19:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLM.h:25,
                 from src/RandLM/RandLMPreproc.h:25,
                 from src/RandLM/RandLMPipeline.h:20,
                 from src/RandLM/RandLMPipeline.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/c++/4.5/ext/hash_map:60:0,
                 from src/RandLM/RandLMHashCache.h:18,
                 from src/RandLM/RandLMHashCache.cpp:17:
/usr/include/c++/4.5/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
build/x86_64-standard/Translation/libTranslation.a(SriLMInterface.o): In function `Translation::SriLMInterface::lmLookAheadScore(unsigned int&)':
SriLMInterface.cc:(.text+0x5f): undefined reference to `SArray<unsigned int, float>::find(unsigned int, bool&) const'
build/x86_64-standard/Translation/libTranslation.a(SriLMInterface.o): In function `Translation::SriLMInterface::prepareLMLookAhead(unsigned int*)':
SriLMInterface.cc:(.text+0x11a): undefined reference to `SArray<unsigned int, Trie<unsigned int, BOnode> >::find(unsigned int, bool&) const'
build/x86_64-standard/Translation/libTranslation.a(SriLMInterface.o): In function `LM::pplFloatCountsFile(File&, unsigned int, TextStats&, char const*, bool)':
SriLMInterface.cc:(.text._ZN2LM18pplFloatCountsFileER4FilejR9TextStatsPKcb[LM::pplFloatCountsFile(File&, unsigned int, TextStats&, char const*, bool)]+0x11): undefined reference to `double LM::pplCountsFile<double>(File&, unsigned int, TextStats&, char const*, bool, NgramCounts<double>*)'
build/x86_64-standard/Translation/libTranslation.a(SriLMInterface.o): In function `LM::pplCountsFile(File&, unsigned int, TextStats&, char const*, bool)':
SriLMInterface.cc:(.text._ZN2LM13pplCountsFileER4FilejR9TextStatsPKcb[LM::pplCountsFile(File&, unsigned int, TextStats&, char const*, bool)]+0x11): undefined reference to `unsigned long LM::pplCountsFile<unsigned long>(File&, unsigned int, TextStats&, char const*, bool, NgramCounts<unsigned long>*)'
build/x86_64-standard/Translation/libTranslation.a(SriLMInterface.o):(.rodata._ZTVN11Translation13NgramExtendedE[vtable for Translation::NgramExtended]+0x170): undefined reference to `Ngram::pruneProbs(double, unsigned int, LM*)'
collect2: ld returned 1 exit status
scons: *** [bin/jane.x86_64-standard] Error 1
scons: building terminated because of errors.





On Thu, Feb 2, 2012 at 12:18 PM, somayeh bakhshaei <s.bak...@gmail.com> wrote:
Thank you David,

I change my script as you said but the error changed to:

CPPFLAGS="-I /Share/HLT-14/bakhshaei/ITRC/jane/jane2/include/" LDFLAGS="-L /Share/HLT-14/bakhshaei/ITRC/jane/jane2/lib/" CXX=gcc-4.5.1 scons -j3


scons: Reading SConscript files ...
Checking whether the C++ compiler worksno
Warning: Option -march=native not supported by the compiler, using generic optimizations.
         You may specify the target architecture with the MARCH environment variable.
Checking whether the C++ compiler worksno
Checking for C++ library oolm_c... no
Error: The SRI LM Toolkit must be installed (under a "SRI" include dir)

In the case SRI dir seems to be installed correctly .
--



---------------------
Best Regards,
S.Bakhshaei

After All you will come ....
And will spread light on the dark desolate world!
O' Kind Father! We will be waiting for your affectionate hands ...

Jörn Wübker

unread,
Feb 2, 2012, 12:13:27 PM2/2/12
to jane-...@googlegroups.com
Hi Somayeh,

have you compiled the srilm toolkit with
make World OPTION=_c ?

Best,
Joern

Am 02.02.12 07:57, schrieb somayeh bakhshaei:
Reply all
Reply to author
Forward
0 new messages