0
0
Linux CLIscripting~20 mins

Building from source basics in Linux CLI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Source Build Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
What is the output of the configure script?
You run ./configure in a source directory. What output indicates the script completed successfully?
Linux CLI
./configure
AConfiguration complete. Now run 'make' to build.
BError: missing dependencies. Cannot continue.
CSegmentation fault (core dumped)
Dbash: ./configure: No such file or directory
Attempts:
2 left
💡 Hint
Look for a message that tells you the next step after configuration.
💻 Command Output
intermediate
1:30remaining
What does 'make install' do?
After building software with make, you run make install. What is the expected output?
Linux CLI
make install
ACleaning up temporary build files
BCompiling source code into object files
CDownloading dependencies from the internet
DCopying files to system directories like /usr/local/bin
Attempts:
2 left
💡 Hint
Think about what 'install' means in this context.
📝 Syntax
advanced
1:30remaining
Which command correctly cleans build files?
You want to remove all files created during the build process using make. Which command is correct?
Amake remove
Bmake delete
Cmake clean
Dmake uninstall
Attempts:
2 left
💡 Hint
The standard target to clean build files is named after a common English word for tidying.
🔧 Debug
advanced
1:30remaining
Why does './configure' fail with 'No such file or directory'?
You run ./configure but get the error: bash: ./configure: No such file or directory. What is the most likely reason?
Linux CLI
./configure
AYou do not have permission to run the script
BThe configure script is missing from the source directory
CThe script has a syntax error
DYour shell does not support ./ commands
Attempts:
2 left
💡 Hint
Check if the file exists in the folder.
🚀 Application
expert
2:00remaining
Order the steps to build software from source
Put these commands in the correct order to build and install software from source.
A1,2,3,4
B2,1,3,4
C1,3,2,4
D4,1,2,3
Attempts:
2 left
💡 Hint
Think about preparing, building, installing, then cleaning.