When installing the package generated by rpmbuild, the following error occurred:
/var/tmp/rpm-tmp.YiDXeN: line 374: syntax error: unexpected end of file
Solution:
Write a shell script:
#!/ bin/bash
while [ 1 -eq 1 ]
do
cat -n /var/tmp/rpm-tmp.*
done
Then execute./Sh_ test.sh
Another window starts the installation, and you can see in the front window where the error stopped.
If/var/TMP/rpm-tmp.6ljgwm: Line 374: syntax error: unexpected end of file
Generally, if and fi are not paired. You can use Notepad + + statistics to see if Don’t count elif
Or use Notepad to open the spec script, highlight if and see the pairing.
have not closed a control structure such as a missing fi
with an if
, or a missing done
with a for
.
Read More:
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- After Centos installation is complete, ifconfig: command not found
- [Solved] ERROR: Subproject directory not found and gst-plugins-base.wrap file not found
- [Solved] G++ Error: Command ‘g++‘ not found, but can be installed with:
- [Solved] Linux – error: cannot open Packages database in /var/lib/rpm
- Error in Linux running file: bash: $’\r’: command not found
- [Solved] zookeeper Cluster error: Error: JAVA_HOME is not set and java could not be found in PATH.
- Error: linker ` link. Exe ` not found | = note: the system cannot find the specified file.
- How to Solve “Error: source file could not be loaded“ [Ubuntu Use LibreOffice]
- Mgr [error]: library file libdmhs_exec.so not found, error: 0
- [Solved] Raspberry Pi Error: You don’t have enough free space in /var/cache/apt/archives/
- Linux Error: CMake Error in CMakeLists.txt: No CMAKE_CXX_COMPILER could be found.
- When installing software in Ubuntu, it prompts: E: You don’t have enough free space in /var/cache/apt/archives/.
- Nginx Startup Error: “/var/run/nginx/nginx.pid” failed” [How to Solve]
- Opensuse12.3 installation of VirtualBox error resolution
- Linux Ubuntu ImportError: Libtk8.5.so: cannot open shared object file:No such file Install tkinter Library
- [Solved] Python Import mmcv Warning: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
- subprocess installed post-installation script returned error exit status 1
- ubuntu install package Error: subprocess installed post-installation script returned error exit status 10
- Installation, Configuration and Simple Use of Rancher