---
title: "“Error in invoking target ‘client_sharedlib’ of makefile ‘/home/oracle/oracle/pr"
author: "libin123"
date: "2011-01-13T17:35:48Z"
tags: []
categories: ["数据库"]
slug: "error-in-invoking-target-client-sharedlib-of-makefile-home-oracle-oracle-pr"
draft: false
lastmod: "2011-01-13T17:36:04Z"
id: 870587
url: "https://dbua.iteye.com/blog/870587"
---

今天同事在安装oracle的时候总是报这个错误：

"Error in invoking target 'client\_sharedlib' of makefile '/home/oracle/oracle/product/10.2.0/db\_1/network/lib/ins\_net\_client.mk'.

我帮忙查了好久，一直都没发现是什么问题，最后不得不放狗，得到提示，查看ORACLE\_HOME下面的install/make.log，在的最后，发现了这样的信息：

/usr/bin/make -f ins\_net\_client.mk client\_sharedlib ORACLE\_HOME=/home/oracle/oracle/product/10.2.0/db\_1//home/oracle/oracle/product/10.2.0/db\_1/bin/genclntsh  
/home/oracle/oracle/product/10.2.0/db\_1/rdbms/lib/kpudfo.o: file not recognized: File format not recognized  
collect2: ld returned 1 exit status  
genclntsh: Failed to link libclntsh.so.10.1  
make: \*\** \[client\_sharedlib] Error

同时检查安装文件：报错如下：

INFO: Start output from spawned process:  
INFO: ----------------------------------  
INFO:

INFO: /home/oracle/oracle/product/10.2.0/db\_1/bin/genclntsh

INFO: /home/oracle/oracle/product/10.2.0/db\_1/rdbms/lib/kpudfo.o: file not recognized: File format not recognized

INFO: collect2: ld returned 1 exit status

INFO: genclntsh: Failed to link libclntsh.so.10.1

INFO: make: \*\** \[client\_sharedlib] Error 1

INFO: End output from spawned process.  
INFO: ----------------------------------  
INFO: Exception thrown from action: make  
Exception Name: MakefileException  
Exception String: Error in invoking target 'client\_sharedlib' of makefile '/home/oracle/oracle/product/10.2.0/db\_1/network/lib/ins\_net\_client.mk'. See '/home/oracle/oraInventory/logs/installActions2011-01-14\_12-28-49AM.log' for details.  
Exception Severity: 1

然后在[这里](http://forums.oracle.com/forums/thread.jspa?threadID=453284)找到有人提出可能的原因：把32位的oracle装64位的操作系统，或者是把64位oracle装32位的系统。

最后问清楚，这个家伙果然是把64位的oracle想装在32位的系统上了。。。  
换回32位系统，一切正常