私はLD
LIBRARY
LIBパスをUbuntu環境変数に設定する必要がありますが、Ubuntuで〜/.bash__profileを見つけることはできませんか?次のコマンドを発行してファイルシステム全体を検索する
sudo find/-name .bash__profile
それは私に何も返さない、うーん… Ubuntuには〜/.bash__profileがないようだ。それは/etc/profileに環境変数を設定するだけでいいです。
ここでは、/etc/profileに環境変数を設定する2つの方法を提供します
echo "export LD__LIBRARY__PATH=/usr/local/lib:/usr/lib/postgresql/8.3/lib;" >>/etc/profile
-
2)/etc/profileを編集するためのVI ** /etc/profileの内容の最後に “export LD
LIBRARY
PATH =/usr/local/lib:/usr/lib/postgresql/8.3/lib; 。
/etc/profileを変更したら、CTRL ALT Backspaceを押してxウィンドウを再起動してください。
-
P.Sユーザは.bashrcにエクスポートを追加して、linuxの環境変数を設定することもできます**
cd ~ vim .bashrc