導航:首頁 > 操作系統 > linuxexitstatus

linuxexitstatus

發布時間:2022-06-30 13:34:48

Ⅰ 利用arm-linux-gcc編譯時出現collect2: ld returned 1 exit status 錯誤:具體步驟如下:

我看上面寫的是 /armlinux/app/mylib這個路徑,下面指定庫路徑的時候就成了/armlinux/ex/mylib了,是不是路徑不對啊,你生成的.so文件是不是在/armlinux/app/mylib這個裡面了。

Ⅱ Linux系統源碼安裝Mysqldb,報錯error: command 'gcc' failed with exit status 1,這個是什麼原因呢

我看不懂你是怎麼運行的命令,我僅僅好意提示一下:
UNIX(不限於linux)下用源碼安裝軟體,一般使用make命令。python 行與不行真不知道。
你的錯誤原因啟動gcc編譯器器啟動不了。你安裝一個gcc,可能解決了。

Ⅲ 用Linux編譯C++代碼出錯了,求幫忙錯誤為:collect2: error: ld returned 1 exit status

這東西很煩,你是不是 .close()忘記括弧了?

Ⅳ Linux使用whiptail形成對話框的方法

在Linux中可以使用命令來形成對話框,Linux命令行形成的對話框就是以代碼的形式出現。whiptail就是一個Linux可以形成對話框的命令行
#!/bin/bash
trap 「」 2
while true
do
OPTION=$(whiptail --title 「Email Manager」 --nocancel --menu 「Choose your option」 15 60 4 \
「1」 「Add Email User」 \
「2」 「Delete Email User」 \
「3」 「List Email User」 \
「4」 「EXIT」 3》&1 1》&2 2》&3)
case $OPTION in
1)
EmailAddress=$(whiptail --title 「EmailAddress-form Input Box」 --inputbox 「What is your add EmailAddress?」 10 60 @shenxu.com 3》&1 1》&2 2》&3)
exitstatus=$?
if [ $exitstatus = 0 ]; then
grep $EmailAddress /etc/postfix/virtual_mailbox_maps》/dev/nul
exitstatus=$?
if [ $exitstatus = 0 ]; then
whiptail --msgbox 「The Email Address is a existed」 10 40
elif (whiptail --title 「Add Yes/No Box」 --yesno 「Are you sure add $EmailAddress.」 10 60) then
/etc/postfix/mailadd.sh $EmailAddress
whiptail --msgbox 「The Email Address $EmailAddress is a added.」 10 40
fi
else
whiptail --msgbox 「You chose Cancel.」 10 40
fi
;;
2)
EmailAddress=$(whiptail --title 「EmailAddress-form Input Box」 --inputbox 「What is your Delete EmailAddress?」 10 60 @shenxu.com 3》&1 1》&2 2》&3)
exitstatus=$?
if [ $exitstatus = 0 ]; then
grep $EmailAddress /etc/postfix/virtual_mailbox_maps》/dev/nul
exitstatus=$?
if [ $exitstatus != 0 ]; then
whiptail --msgbox 「The Email Address $EmailAddress is a not exist.」 10 40
elif (whiptail --title 「Add Yes/No Box」 --yesno 「Are you sure delete $EmailAddress.」 10 60) then
/etc/postfix/maildel.sh $EmailAddress
whiptail --msgbox 「The Email Address $EmailAddress is a deleted.」 10 40
fi
else
whiptail --msgbox 「You chose Cancel.」 10 40
fi
;;
3)
EmailAddress=$(cat /etc/postfix/virtual_mailbox_maps | awk 『{print $1}』)
whiptail --msgbox 「The Email User list are $EmailAddress.」 --scrolltext 20 40
;;
4)
echo 「EXIT」
break
;;
esac
done
trap : 2
whiptail --title 「Email Manager」 --nocancel --menu 「Choose your option」 15 60 4 \
「1」 「Add Email User」 \
「2」 「Delete Email User」 \
「3」 「List Email User」 \
「4」 「EXIT」 3》&1 1》&2 2》&3
--title 「Email Manager」 是標題,雙引號里是自己填的提示信息
--nocancel 是在這個圖文裡面不顯示取消,只顯示OK
--menu 「Choose your option」 15 60 4 是表示菜單提示,雙引號里是自己填的提示信息,15是高度,60是長度,4是有個選擇項目
下面的1-4是自己的提示
最後比較關鍵,3》&1 1》&2 2》&3是為了把選擇的內容填進變數OPTION
whiptail --title 「EmailAddress-form Input Box」 --inputbox 「What is your add EmailAddress?」 10 60 @shenxu.com 3》&1 1》&2 2》&3
--inputbox 「What is your add EmailAddress?」 是可以形成一個讓用戶輸入的提示框
@shenxu.com 是默認輸入text里的值
whiptail --msgbox 「You chose Cancel.」 10 40 是顯示一行你的提示
其實還有--infobox,似乎和msgbox很像,其實不同,它基本上用不上,是在shell運行完後,可以往前翻頁能看見的東西
--scrolltext 20 40是為了顯示多行的時候可以上下滾動
另外還有--passwordbox和text一樣輸入,就是以***顯示
whiptail --checklist 「choose」 15 60 2 「1」 「aa」 ON 「2」 「bb」 ON
15 60還是高和寬,2是有幾個選項,和menu一樣,後面多了一個ON或者OFF表示狀態,就是菜單出來後默認是不是選,On是選,OFF不選,用空格鍵來選擇。可以多選。
--radiolist,不可以多選了。ON就只能有一個,其它必須是OFF
還有一個顯示進度條的--gauge,我覺得沒啥用處。
#!/bin/bash
{
for n in `seq 100`
do
sleep 1
echo $n
done
} | whiptail --gauge 「Please wait while installing」 6 60 0
以上就是Linux使用whiptail形成對話框的方法,把寫好的代碼復制到whiptail裡面就可以形成對話框了。

Ⅳ linux下安裝gsoap在make時報錯collect2: error: ld returned 1 exit status

此類問題一般是庫的問題,在你安裝應用之前請確保你的應用所需要的依賴全部安裝在電腦上,否則安裝就會提示失敗。抱歉的是,你這個軟體我沒有安裝過,不知道缺失的是什麼庫文件。

Ⅵ linux中oracle服務啟動都有哪些方法

手動啟動:
用 oracle用戶登錄(或su - oracle)
lsnrctl start
sqlplus / as sysdba
startup
exit

自動啟動,要編寫一個啟動腳本,用root用戶拷到/etc/init.d下,取名叫oracle
然後, chkconfig oracle on,即可加入服務列表
/etc/init.d/oracle start #啟動
/etc/init.d/oracle stop #停止
腳本的示例(裡面的變數要按實際情況修改):
#!/bin/bash
#
# chkconfig: 345 99 01
# description: This is a program that is responsible for taking care of
# configuring the Oracle Database 11g Stardard/Enterprise Edition and its associated
# services.
#

# Source fuction library
if [ -f /lib/lsb/init-functions ]
then
. /lib/lsb/init-functions
elif [ -f /etc/init.d/functions ]
then
. /etc/init.d/functions
fi

# Set path if path not set (if called from /etc/rc)
case $PATH in
"") PATH=/bin:/usr/bin:/sbin:/etc
export PATH ;;
esac

# Save LD_LIBRARY_PATH
SAVE_LLP=$LD_LIBRARY_PATH

RETVAL=0

ORACLE_OWNER=oracle
ORACLE_OWNER_HOME=/opt/oracle
ORACLE_BASE=$ORACLE_OWNER_HOME/app/oracle
ORACLE_HOME=$ORACLE_BASE/proct/11.2.0/dbhome_1
ORACLE_SID=orcl
ORACLE_UNQNAME=$ORACLE_SID
LSNR=$ORACLE_HOME/bin/lsnrctl
SQLPLUS=$ORACLE_HOME/bin/sqlplus
STARTDB_SQL=$(mktemp /tmp/start.XXXXXX)
echo -e "startup;\nquit;\n" > $STRTDB_SQL
STOPDB_SQL=$(mktemp /tmp/stop.XXXXXX)
echo -e "shutdown immediate;\nquit;\n" > $STOPDB_SQL
SU=/bin/su
export ORACLE_HOME
export ORACLE_SID
export PATH=$ORACLE_HOME/bin:$PATH
LOG="$ORACLE_HOME_LISTNER/listener.log"

export LC_ALL=C

if [ $(id -u) != "0" ]
then
echo "You must be root to run the configure script. Login as root and then run the
configure script."
exit 1
fi

if [ -f /etc/redhat-release ]
then
. /etc/init.d/functions

init_status()
{
return 0
}
exit_status()
{
exit $?
}
success_status()
{
success
echo
}
failure_status()
{
failure $?
echo
}

elif [ -f /etc/SuSE-release ]
then
. /etc/rc.status

init_status()
{
rc_reset
}
success_status()
{
echo "OK"
return 0
}
failure_status()
{
echo "Failed"
return 1
}
exit_status()
{
exit $?
}

else
if [ -d /etc/default ]
then
CONFIGURATION="/etc/default/$CONFIG_NAME"
fi

init_status()
{
return 0
}

success_status()
{
echo "OK"
return 0
}

failure_status()
{
echo "Failed"
return 0
}

exit_status()
{
exit $?
}
fi

init_status

start() {

status=`ps -ef | grep tns | grep oracle`
if [ "$status" == "" ]
then
if [ -f $ORACLE_HOME/bin/tnslsnr ]
then
echo "Starting Oracle Net Listener."
$SU -s /bin/bash $ORACLE_OWNER -c "$LSNR start" # > /dev/null 2>&1
fi
fi
echo "Starting Oracle Database 11g Instance."
$SU -s /bin/bash $ORACLE_OWNER -c "$SQLPLUS -s /nolog @${STARTDB_SQL}" # > /dev/null 2>&1
RETVAL=$?
if [ $RETVAL -eq 0 ]
then
echo
else
echo Failed to start Oracle Net Listener using $ORACLE_HOME/bin/tnslsnr\
and Oracle Database using $ORACLE_HOME/bin/sqlplus.
RETVAL=1
return $RETVAL
fi

}

startconsole() {

$SU -s /bin/bash $ORACLE_OWNER -c "$ORACLE_HOME/bin/emctl start dbconsole &" # > /dev/null 2>&1
RETVAL=$?
return $RETVAL
}

stop() {

# Stop Oracle 11g Database and Listener
$SU -s /bin/bash $ORACLE_OWNER -c "$ORACLE_HOME/bin/emctl stop dbconsole &" # > /dev/null 2>&1

echo Shutting down Oracle Database 11g Instance.
$SU -s /bin/bash $ORACLE_OWNER -c "$SQLPLUS -s /nolog @${STOPDB_SQL}" # > /dev/null 2>&1
echo Stopping Oracle Net Listener.
$SU -s /bin/bash $ORACLE_OWNER -c "$LSNR stop" # > /dev/null 2>&1
RETVAL=$?
echo
if [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$LSNR
then
return $RETVAL
fi
}

stopconsole() {
# Stop Oracle 11g Database and Listener
$SU -s /bin/bash $ORACLE_OWNER -c "$ORACLE_HOME/bin/emctl stop dbconsole &" # > /dev/null 2>&1
RETVAL=$?
return $RETVAL
}

# See how we were called
case "$1" in
start)
start
;;
startconsole)
startconsole
;;
stop)
stop
;;
stopconsole)
stopconsole
;;
restart|reload|force-reload)
stop
start
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|force-reload}"
exit 1
esac

Ⅶ linux切換用戶時 /usr/libexec/gconf-sanity-check exited with status 256

刪除/tmp中的所有文件(包括隱藏文件),然後將/tmp目錄的許可權改為777,之後重啟即可
# cd /tmp
# ls -A |xargs rm -rf *
# chmod 777 /tmp

Ⅷ Linux、C語言進程之間通信

B.1 正常退出。
man的解析。

WIFEXITED(status)
returns true if the child terminated normally, that is, by call‐
ing exit(3) or _exit(2), or by returning from main().
真就是1,假就是0.

Ⅸ Linux中的WEXITSTATUS是什麼函數

WEXITSTATUS(status): 取子進程傳送給exit或_exit參數的低8位

閱讀全文

與linuxexitstatus相關的資料

熱點內容
java棧的元素 瀏覽:737
程序員與籃球事件 瀏覽:673
app反編譯不完整 瀏覽:788
電腦上的文件夾怎麼調整 瀏覽:5
伺服器無響應是什麼原因呀 瀏覽:984
wd文檔里的app怎麼製作 瀏覽:513
電腦里的文件夾沒有了一般能恢復嗎 瀏覽:418
哪裡有配加密鑰匙的 瀏覽:210
伺服器開不了機怎麼把數據弄出來 瀏覽:958
gif動態圖片怎麼壓縮 瀏覽:521
黑猴子棒球壓縮文件解壓密碼 瀏覽:631
如何讓app適應不同的手機屏幕大小 瀏覽:10
蘋果手機如何給安卓手機分享軟體 瀏覽:761
蘋果電腦怎麼運行騰訊雲伺服器 瀏覽:59
明日之後沙石堡命令助手 瀏覽:261
蛋糕店用什麼樣的app 瀏覽:877
長安銀行信用卡app怎麼取現 瀏覽:635
dos命令cmd命令的 瀏覽:226
阿里雲存檔視頻文件的伺服器 瀏覽:194
ftp修改文件許可權命令 瀏覽:491