Summary of the experiment Five
- Problem Link: "the Foundation of Information Security system design" Experimental five experimental report
-
- Although all copies of the 07_httpd file are in BC and the folder has makefile files, It is still not possible to get the copy and httpd executables in that folder through Make.
Fix: The first time is that the path in the makefile file is not correct, change it to/home/bc/07_httpd saved after the exit found or unable to execute, the second time we directly use GCC to compile its single step:
Armv4l-unknow-linux-gcc–e copy.c–o copy.i
armv4l-unknow-linux-gcc–s copy.i–o copy.s
armv4l-unknow-linux-gcc–c copy.s–o copy.o
The
is compiled for httpd as in the same way.
Make--project manager, in order to reduce duplication of effort, the "automatic compilation manager", "automatic" is that it can automatically discover the updated files based on the file timestamp and reduce the compilation effort, while it performs a lot of compilation work by reading the contents of the Makefile File. Users only need to write a simple compile statement, that is, just typing make can compile all the files, it greatly improves the actual project efficiency, almost all of the programming of the Linux project needs to use it.
- make when
error127
appears.
fix: found the cause, the environment variable configuration problem, is the copy code when a Rules.mak Mak type file is not copied together, resulting in the make command can not be used, reconfigure the normal make.
- In this step of downloading the HTTPD service to the development board, when you mount HyperTerminal to communicate with a shared file, when you lose
mount-t nfs-o nolock 192.168.0.234:/root/bc/hos
, mention Code>no such file or director error Prompt.
Workaround: View the shared files directory again, Make sure we do not EXIST/ROOT/HOME/BC this directory, modify the command line mount-t nfs-o nolock 192.168.0.234:/home/bc/hos
To resolve the error you are Prompted.
- Issue link: Beijing Institute of Electronic Technology (besti) Experimental report 5
- Problem: when make occurs, error127.
Workaround: found the cause, the environment variable configuration problem, is the copy code when a Rules.mak Mak type file is not copied together, resulting in the make command can not be used, reconfigure the normal make.
- Problem Link: The foundation of Information Security system Design Experiment Five experimental report
The following issue was encountered in the compilation Issue.
In order to solve the problem that httpd failed to compile automatically, the hpptd.c file is manually multithreaded.
- Problem link: 20145320\20145319 "the Foundation of Information Security system design" experiment Five
-
- Make compilation problems and solutions
Problem: we copy all the 07_httpd folder into the bc, the folder has the makefile file, according to the Experiment Guide use make compile, there is an error, the program cannot compile.
Workaround: we created a new bin folder in the WS folder where the 07_HTTPD was located and eventually compiled Successfully.
- Issues Link: 20144303 20145239 "the Foundation of Information Security system design" experimental Five network communication
Question One:
Make occurs when: error127
workaround: found the cause, the environment variable configuration problem, is the copy code when a Rules.mak Mak type file is not copied together, resulting in the make command can not be used, reconfigure the normal make.
Question Two:
Go to the 07_hpptd folder and try to make the automatic compilation directly. Appears as shown in the error, error1.
workaround: In order to resolve an issue where httpd failed to compile automatically, manual multithreaded compilation of the Hpptd.c file is performed as Shown.
Issue Link 20145240 "the Foundation of Information Security system design" experiment Five network communication
- Problem Link: "the Foundation of Information Security system design" Experimental five experimental report
- 1. Although all copies of the 07_httpd file have been copied into bc, the folder has a makefile file, but it is still not possible to get the copy and httpd executable files in that folder through Make.
Resolution: The first time is that the path in the makefile file is not correct, change it to/home/bc/07_httpd after the exit to find or unable to execute, the second time we directly use GCC to compile its single step:
Armv4l-unknow-linux-gcc–e Copy.c–o copy.i
Armv4l-unknow-linux-gcc–s Copy.i–o COPY.S
Armv4l-unknow-linux-gcc–c Copy.s–o COPY.O
The httpd is compiled in the same way as Above.
Make--project manager, in order to reduce duplication of effort, the "automatic compilation manager", "automatic" is that it can automatically discover the updated files based on the file timestamp and reduce the compilation effort, and it performs a lot of compilation work by reading the contents of the Makefile File. Users only need to write a simple compile statement, that is, just typing make can compile all the files, it greatly improves the actual project efficiency, almost all of the programming of the Linux project needs to use it.
- Problem link: 20145227&20145201 "the Foundation of Information Security system design" experiment Five
Make compilation problems and solutions
Problem: we copy all the 07_httpd folder into the bc, the folder has the makefile file, according to the Experiment Guide use make compile, there is an error, the program cannot compile.
Workaround: we created a new bin folder in the WS folder where the 07_HTTPD was located and eventually compiled Successfully.
- Issues link: 20145328 "the Foundation of Information Security system design" experiment Five network communication
- There was a problem compiling. Viewing the makefile file indicates that a bin folder is missing from the parent directory, and the compilation succeeds after adding
- problem link: 20145219 "the Foundation of Information Security system design" Experiment Five network communication
-
-
Issue 1: When you run the make command to generate the executable file httpd, we run the Make command and enter 07_HTTPD Folder to view, found and did not generate httpd this file ... After you run the make command again, you get a prompt for can ' t open output file. /BIN/HTTPD "
.
-
Workaround: When we see the prompt, we know that the prompt is said in the 07_httpd folder in the parent directory WS does not exist in the bin folder, so that the command will not be allowed to enter the WS/BIN/HTTPD this path, We looked at it immediately and found that there was no bin Folder. Knowing the cause of the problem, we go back to the top-level directory in the current directory, use the mkdir bin
command, try to create the bin directory in the WS document, and run the make command to produce the httpd File.
-
Question 2: Use the command in the Experiment Guide mount-t nfs-o nolock 192.168.0.56:/arm2410cl/host
will htt Error occurred while PD
was downloaded to the Board.
-
Workaround: After analyzing the command, we find that the ip, folder location and so on of the experiment instruction are not exactly the same, this command needs to change the IP address 192.168.0.56
To redhat the virtual Machine's IP address 192.16.0.234
, and change the arm2410cl
folder to a shared folder HOME/BC
, Run command Mount-t nfs-o nolock 192.168.0.234:/home/bc/host
can be executed smoothly.
- Issues link: 20145213 "the Foundation of Information Security system design" experiment Five network communication
- Although all copies of the 07_httpd file have been copied into bc, the folder has a makefile file, but it is still not possible to get the copy and httpd executables in that folder through Make.
Fix: Modify path Path in the makefile File.
- Problem Link: 20145302 Zhang Wei 20145308 Liu Hao Yang "the Foundation of the design of information security system" Five network communication
- We did not compile successfully with makefile compile
Solve
- According to the experience of experiment 4, we think that the content of makefile is missing the necessary part, after asking us to find out if it is so, we will revise makefile as Follows:
- Issues link: 20145324 20145325 "the Basic design of information security system" Experiment Five
- There was a problem with Make.
Just build a bin File.
- Problem link: 20145224&20145238 "the Foundation of Information Security system design" experiment Five
- 1.07_HTTPD file path is not correct, found that the copy of the wrong folder, then all copies into the bc, the folder has makefile files, after the creation of copy and httpd executable Files.
- Problem link: 20145212&20145204 Information Security system Experiment Five
- 1. When running the make command to generate the executable file httpd, we run the make command and then go inside the 07_HTTPD folder to see that the httpd file is not generated.
2. workaround: Run the Make command again and be prompted can’t open output file ../bin/httpd
that the bin does not exist in the parent directory WS of our current 07_HTTPD folder, so the command cannot be entered when ws/bin/httpd
it is run
3. Using mkdir, the command that creates the specified name directory, returns to the top-level directory in the current directory, uses the mkdir bin
Bin directory created in the WS document, and runs the make command to produce the httpd file
- Issues link: 20145211 "the Foundation of Information Security system design" experiment Five network communication
- 1. Although all copies of the 07_httpd file have been copied into bc, the folder has a makefile file, but it is still not possible to get the copy and httpd executable files in that folder through Make.
Resolution: The first time is that the path in the makefile file is not correct, change it to/home/bc/07_httpd after the exit to find or unable to execute, the second time we directly use GCC to compile its single step:
armv4l-unknow-linux-gcc–e copy.c–o copy.i
armv4l-unknow-linux-gcc–s copy.i–o copy.s
armv4l-unknow-linux-gcc–c copy.s–o copy.o
the httpd is compiled in the same way as Above.
Make--project manager, in order to reduce duplication of effort, the "automatic compilation manager", "automatic" is that it can automatically discover the updated files based on the file timestamp and reduce the compilation effort, and it performs a lot of compilation work by reading the contents of the Makefile File. Users only need to write a simple compile statement, that is, just typing make can compile all the files, it greatly improves the actual project efficiency, almost all of the programming of the Linux project needs to use it.
- Problem Link: 20145221 High its &20145326 Cai "the Foundation of Information Security system design" experiment of five simple embedded web server
Problem: error127 appears during Make.
Fix: found the reason, is the environment variable configuration has a problem, is the copy code when a Rules.mak Mak type file is not copied together, resulting in the make command can not be used, reconfigure the normal make.
- Issues Link: 20145210 20145226 The basic design of information security system experiment five simple embedded Web server experiment
· Problem: unable to get copy and httpd executables, each make will show error
· Workaround: Create a new folder bin in the BC folder and make the display again successfully
Summary of the experiment Five
A summary of experiment five (simple embedded Web server Experiment)