0

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

Soren A
  • 6,799
Dario
  • 3

1 Answers1

1

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.

Parsa Mousavi
  • 3,305
  • 16
  • 37
  • Thanks for all comments, but now I got another problem after run ./configure – Dario Jun 19 '20 at 15:22
  • 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
  • @Dario You have to install 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
  • This time I got this: 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
  • @Dario Which project you're trying to build? – Parsa Mousavi Jun 19 '20 at 16:44
  • I try to install cpptraj an AmberTools: https://github.com/Amber-MD/cpptraj – Dario Jun 19 '20 at 16:58
  • Really Thanks for you time, help and kindness. – Dario Jun 19 '20 at 17:41
  • @Dario You're welcome. And if that helped you please consider accepting the answer. – Parsa Mousavi Jun 19 '20 at 17:50