I tried to run the below command in order to procede to install a program:
$ . configure
but after few second the Ubuntu terminal close, without any message. What happened?
Thanks for your time about my issue
By doing that you're running the configure script in the current shell similar to exec bash -e ./configure
or simply source ./configure
.
Dot followed by a space is equivalent to the source command , but if you want to execute the configure script in the current directory , you have to add a slash between the dot and configure :
./configure
The bash first spawns a new shell then executes it in the child shell.But if you use the source command or . configure
, you're actually executing it instead of the current bash process.So your terminal will get closed after that since there's no shell to give you a prompt.
Testing C++ compiler: Error: Test compile failed: g++ -Wall -O3 -o testp testp.cpp Error: Check the output below for error messages: ./configure: line 381: g++: command not found
– Dario
Jun 19 '20 at 15:23
g++
for that(sudo apt install g++
) .Please check out the required packages in the README or INSTALL.md of the program you're trying to compile to prevent future errors.
– Parsa Mousavi
Jun 19 '20 at 15:26
dario@dario-VirtualBox:~/cpptraj$ ./configure No compilers specified; defaulting to gnu Testing C++ compiler: OK Testing C compiler: OK Testing Fortran compiler: OK Testing basic C++11 support: OK Testing system headers for C++11 support: OK Warning: Compilation of sanderlib requires AMBERHOME to be set Warning: if --with-sanderlib not specified. Checking BZLIB: Error: Test compile failed: g++ -Wall -O3 -std=gnu++11 -o testp testp.cpp -lbz2 Error: Check the output below for error messages: testp.cpp:2:10: fatal error: bzlib.h:
– Dario
Jun 19 '20 at 16:35
./configure
instead. – Soren A Jun 19 '20 at 10:14Testing C++ compiler: Error: Test compile failed: g++ -Wall -O3 -o testp testp.cpp Error: Check the output below for error messages: ./configure: line 381: g++: command not found
– Dario Jun 19 '20 at 13:39