After lots of errors and workarounds I finally ended up with this error. How to fix this?please help
---------------------------------------------
scons -Q install=true
Build rules for Ocelot....
Ocelot will be installed at /usr/local
g++ -o .release_build/OcelotConfig -L/usr/local/lib -lz -lpthread -ltinfo -ldl -lm .release_build/ocelot/tools/OcelotConfig.o -L/usr/lib -L/usr/local/lib -locelot -lboost_system -lboost_filesystem -lboost_thread -lGLEW -ldl -lrt -lpthread -lLLVMAsmParser -lLLVMX86Disassembler -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMObjCARCOpts -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport
/usr/local/lib/libocelot.so: undefined reference to `setupterm'
/usr/local/lib/libocelot.so: undefined reference to `tigetnum'
/usr/local/lib/libocelot.so: undefined reference to `set_curterm'
/usr/local/lib/libocelot.so: undefined reference to `del_curterm'
collect2: error: ld returned 1 exit status
scons: *** [.release_build/OcelotConfig] Error 1
Build failed...