Actually, while building from source it generates all the neccesary libs. except libPython and libPyROOT. Also, while generating the build files it finds the reqd. python libs.(by default python 2.7).
The ROOT prompt opens as normal but any file with import ROOT raises the error.
The following error is raised on switching to Python from the root prompt by executing TPython::Prompt()
cling::DynamicLibraryManager::loadLibrary(): libcppyy.so: cannot open shared object file: No such file or directory
Error in <TCling__LazyFunctionCreatorAutoloadForModule>: Failed to load library /usr/local/ROOT/lib/libROOTTPython.so
cling::DynamicLibraryManager::loadLibrary(): libcppyy.so: cannot open shared object file: No such file or directory
Error in <TCling__LazyFunctionCreatorAutoloadForModule>: Failed to load library /usr/local/ROOT/lib/libROOTTPython.so
IncrementalExecutor::executeFunction: symbol ‘_ZN7TPython6PromptEv’ unresolved while linking [cling interface function]!
You are probably missing the definition of TPython::Prompt()