Linux安装Oracle Database 11G时遇'make文件install目标调用错误'
Hey there, I’ve dealt with this exact make install error multiple times while setting up Oracle 11g on various Linux distros. Let’s walk through the most reliable fixes that usually resolve this issue:
1. Install Missing Dependencies
Oracle 11g relies on a bunch of system packages that are easy to overlook. Even one missing package can derail the make process. Run these commands (adjust for your distro):
# For RHEL/CentOS 6/7 yum install -y glibc-devel.i686 glibc-devel.x86_64 gcc gcc-c++ make libaio-devel libaio-devel.i686 \ libXext.x86_64 libXtst.x86_64 libX11.x86_64 libXau.x86_64 libxcb.x86_64 libXi.x86_64 # For Debian/Ubuntu-based systems apt-get install -y build-essential libaio-dev lib32z1 lib32ncurses5 lib32stdc++6
2. Verify Oracle User Environment Variables
Double-check that the oracle user has the correct environment variables set in ~/.bash_profile or ~/.bashrc:
export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1 export ORACLE_SID=ORCL export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
After editing, reload the profile with source ~/.bash_profile and confirm variables are correct with echo $ORACLE_HOME.
3. Fix File Permissions and Ownership
Make sure the oracle user has full access to the installation directory and extracted files:
# Set correct ownership for the base directory chown -R oracle:oinstall /u01/app/oracle # Fix permissions on installer files chmod -R 755 /path/to/extracted_oracle_files
4. Adjust Kernel Parameters
Incorrect kernel settings often break the make process. Edit /etc/sysctl.conf to include these values:
fs.file-max = 6815744 kernel.sem = 250 32000 100 128 kernel.shmmni = 4096 kernel.shmall = 1073741824 kernel.shmmax = 4294967295 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576
Apply changes with sysctl -p and ensure they persist after reboot.
5. Re-Extract Installation Media
Corrupted installer files are a common culprit. Delete the existing extracted folder, then re-extract the Oracle 11g zip files:
unzip linux.x64_11gR2_database_1of2.zip unzip linux.x64_11gR2_database_2of2.zip
Run the installer again from the fresh extraction.
If none of these work, check the detailed log file (usually in $ORACLE_BASE/cfgtoollogs/dbca or $ORACLE_HOME/install)—it’ll have specific error messages to narrow down the root cause.
内容的提问来源于stack exchange,提问作者EzeTeja

