2007年10月29日星期一

在Ubuntu系统下安装*.bin程序


晚上在Ubuntu7.10下安装gCAD3D-1.12-Linux-x86.bin程序

安装的Ubuntu Linux,已经安装了jdk1.5了,而且用"新立得包管理器"安装软件也很方面

Linux下安装*.bin程序的方式:

1.先把*.bin拷到/usr/local下面

sudo cp /home/wang/gCAD3D-1.12-Linux-x86  /usr/local

2.执行命令 sudo chmod +x *.bin

cd /usr/local

sudo chmod +x gCAD3D-1.12-Linux-x86

3.执行命令sudo ./*.bin

sudo ./gCAD3D-1.12-Linux-x86

备注:*指的是安装程序的名字;因为要以root身份运行命令,所以要在命令前加sudo;不能直接在windows分区上执行./*.bin


以下是详细的过程:

wang@wang-desktop:~/Downloads$ sudo cp gCAD3D-1.12-Linux-x86  /usr/local
[sudo] password for wang:
wang@wang-desktop:~/Downloads$ cd /usr/local
wang@wang-desktop:/usr/local$ sudo chmod +x gCAD3D-1.12-Linux-x86
wang@wang-desktop:/usr/local$ sudo ./gCAD3D-1.12-Linux-x86
ex desk_init_gnome |GNOME| 0
 PRGDIR=|/usr/local/|
 system |mkdir /tmp/gCAD3D-1|
 system |touch /tmp/gCAD3D-1//t1|
 TEMPDIR |/tmp/gCAD3D-1/|
 system |/sbin/ldconfig -p > /tmp/gCAD3D-1/active_libs.lst|
***** ERROR OPEN FILE  **********
 system |grep libgtk-x11-2.0.so.0 /tmp/gCAD3D-1/active_libs.lst 1>/dev/null 2>/dev/null|
ex inst_checklib 0 |libgtk-x11-2.0.so.0|
 strLANG=||
***** ERROR OPEN FILE  **********
 system |touch /tmp/gCAD3D-1//LOGFILE.txt|
xa_log |Install Package ./gCAD3D-1.12-Linux-x86|
xa_log |use Tempdir  /tmp/gCAD3D-1/|
xa_log |Logfile is /tmp/gCAD3D-1//LOGFILE.txt|
xa_log |Directory for Desktop-Icon is /home/wang/Desktop|
xa_log |USER is root|
 system |gunzip -f /tmp/gCAD3D-1//gCAD3D.gxInst.gz|
 system |gunzip -f /tmp/gCAD3D-1//gxInst.files.gz|
 system |gunzip -f /tmp/gCAD3D-1//xa_logo.xpm.gz|
 system |gunzip -f /tmp/gCAD3D-1//License_en.txt.gz|
 system |gunzip -f /tmp/gCAD3D-1//License_de.txt.gz|
 system |gunzip -f /tmp/gCAD3D-1//gCAD3D.gz|
 system |gunzip -f /tmp/gCAD3D-1//gCAD3D.xpm.gz|
 system |gunzip -f /tmp/gCAD3D-1//unInstall.xpm.gz|
.............. 1 |product gCAD3D|
.............. 2 |version 1.12|
.............. 3 |platform Linux-x86|
.............. 5 |log --- start installation for user %USER% ---|
xa_log |--- start installation for user root ---|
.............. 9 |disp_txt 1 Welcome to the installation of %PRODUCT% - Version %VERSION%|
 i1=1 LANG=1
.............. 10 |disp_img xa/xa_logo.xpm|
gui_disp_img |/tmp/gCAD3D-1/xa_logo.xpm|
.............. 11 |disp_txt 1 please select Language,|
 i1=1 LANG=1
.............. 12 |disp_txt 1 click "Continue" to start ..|
 i1=1 LANG=1
.............. 13 |uMenu %LANG% English Deutsch|
 save menu -> loc -1
 i1=655610
 dx=250 dy=10
 strLANG=|En|
xa_log |MenuOption 1 selected|
.............. 15 |butt1 2 W e i t e r|
 i1=2 LANG=1
.............. 16 |butt2 2 A b b r e c h e n|
 i1=2 LANG=1
.............. 19 |checklib libGLU.so.1|
xa_log | check for Library libGLU.so.1|
 system |grep libGLU.so.1 /tmp/gCAD3D-1/active_libs.lst 1>/dev/null 2>/dev/null|
ex inst_checklib 0 |libGLU.so.1|
 strLANG=|En|
xa_log |  lib OK ..|
.............. 20 |checklib libGL.so.1|
xa_log | check for Library libGL.so.1|
 system |grep libGL.so.1 /tmp/gCAD3D-1/active_libs.lst 1>/dev/null 2>/dev/null|
ex inst_checklib 0 |libGL.so.1|
 strLANG=|En|
xa_log |  lib OK ..|
.............. 25 |disp_txt 1 Please review the License terms before installing %PRODUCT%-%|
 i1=1 LANG=1
.............. 26 |disp_txt 2 Bitte pruefen Sie diesen Lizenzvertrag vor der Installation v|
 i1=2 LANG=1
.............. 27 |butt1 1 I   A g r e e|
 i1=1 LANG=1
.............. 28 |butt1 2 I c h   s t i m m e   z u|
 i1=2 LANG=1
.............. 29 |ifeq %LANG% 1|
 str1=|1|
 str2=|1|
.............. 30 |uDispFil License_en.txt|
.............. 31 |endif|
.............. 32 |ifeq %LANG% 2|
 str1=|1|
 str2=|2|
.............. 35 |butt1 1 C o n t i n u e|
 i1=1 LANG=1
.............. 36 |butt1 2 W e i t e r|
 i1=2 LANG=1
.............. 40 |disp_txt 1 Select the folder in which to install the programfiles -|
 i1=1 LANG=1
.............. 41 |disp_txt 2 Waehlen Sie das Verzeichnis, in dem die Programmfiles install|
 i1=2 LANG=1
.............. 42 |set %1% %HOME%/%PRODUCT%/|
 i1=1 var=|1|
.............. 43 |uGetDir %1% Select program-directory -|
 i1=1 var=|1|
Launching a SCIM daemon with Socket FrontEnd...
Loading simple Config module ...
Creating backend ...
Loading socket FrontEnd module ...
Starting SCIM as daemon ...
GTK Panel of SCIM 1.4.7

ex OS_checkFilExist NO |/home/wang/gCAD3D/| 1
 - Try to create /home/wang/gCAD3D/
xa_log |Dir. /home/wang/gCAD3D/ sucessfully created |
xa_log |Dir. 1 selected /home/wang/gCAD3D/|
.............. 59 |clear|
.............. 60 |disp_txt 1 Copy to %1% ....|
 i1=1 LANG=1
.............. 61 |copypath ../gCAD3D %1%|
 src=|gCAD3D|
 dest=|/home/wang/gCAD3D/|
xa_log | Copy Directory  gCAD3D  >  /home/wang/gCAD3D/.|
 system |cd /home/wang/gCAD3D/&&tar xvzf /tmp/gCAD3D-1/gCAD3D.tgz|
./
./tmp/
./tmp/Model
./doc/
./doc/gCAD3D_de.htm
./doc/gCAD3D_en.htm
./doc/gCAD3D_startCAD_de.htm
./doc/gCAD3D_startCAD_en.htm
./doc/gCAD3D_startMAN_de.htm
./doc/gCAD3D_startMAN_en.htm
./doc/gCAD3D_startNC_de.htm
./doc/gCAD3D_startNC_en.htm
./doc/gCAD3D_startVRML_de.htm
./doc/gCAD3D_startVRML_en.htm
./doc/Catalog_de.htm
./doc/CAD_AC_de.htm
./doc/CAD_Ace_de.htm
./doc/CAD_Act_de.htm
./doc/CAD_Analyz_de.htm
./doc/CAD_Base_de.htm
./doc/CAD_CV_de.htm
./doc/CAD_DIM_de.htm
./doc/CAD_LN_de.htm
./doc/CAD_Model_de.htm
./doc/CAD_Modify_de.htm
./doc/CAD_PLN_de.htm
./doc/CAD_PT_de.htm
./doc/CAD_SOL_de.htm
./doc/CAD_SUR_de.htm
./doc/CAD_Tra_de.htm
./doc/CAD_Var_de.htm
./doc/CAD_Vec_de.htm
./doc/gCAD3D_Linux.txt
./doc/gCAD3D_log.txt
./doc/gCAD3D_MS-Win.txt
./doc/gCAD3D_prog_de.txt
./doc/gCAD3D_prog_en.txt
./dat/
./dat/samp_anilin.wrl
./dat/sample_area1.gcad
./dat/sample_area2.gcad
./dat/sample_area3.gcad
./dat/sample_area4.gcad
./dat/sample_area_bsp1.gcad
./dat/sample_area_bsp2.gcad
./dat/sample_area_bsp3.gcad
./dat/sample_area_bsp4.gcad
./dat/sample_area_bsp4.gcaz
./dat/sample_area_bsp5.gcad
./dat/sample_area_bsp6.gcad
./dat/sample_area_bsp7.gcad
./dat/sample_area_pln1.gcad
./dat/sample_area_pln2.gcad
./dat/sample_area_sph1.gcad
./dat/sample_area_sru1.gcad
./dat/sample_area_sru2.gcad
./dat/sample_area_srv1.gcad
./dat/sample_area_tor3.gcad
./dat/sample_bmp1.bmp
./dat/sample_catalog1.gcad
./dat/sample_cloth1.gcad
./dat/sample_curv1.gcad
./dat/sample_curv_bsp_join1.gcad
./dat/sample_dimen1.gcad
./dat/sample_hatch1.gcad
./dat/sample_interact1.gcad
./dat/sample_intersect_sur0.gcad
./dat/sample_intersect_sur1.gcad
./dat/sample_mockup1.gcad
./dat/sample_mod_blech1.gcad
./dat/sample_models0.gcad
./dat/sample_models1.gcad
./dat/sample_modelsErrKreuz.gcad
./dat/sample_mod_nut1.gcad
./dat/sample_mod_screw1.gcad
./dat/sample_nc0.gcad
./dat/sample_nc1.gcad
./dat/sample_nc2.gcad
./dat/sample_nc3.gcad
./dat/sample_nc4.gcad
./dat/sample_nc_cut1.gcad
./dat/sample_solids1.gcad
./dat/sample_solids2.gcad
./dat/sample_Stein1.bmp
./dat/sample_step1.stp
./dat/sample_tex1.gcad
./dat/sample_text1.gcad
./dat/sample_text2.gcad
./dat/sample_textur1.gcad
./dat/sample_transpar1.gcad
./dat/sample_ucs1.gcad
./dat/sample_Ziegel1.bmp
./dat/samp_wrl1.wrl
./xa/
./xa/gCAD3D.xpm
./xa/menOff.xpm
./xa/menOn.xpm
./xa/unInstall.xpm
./xa/xa_logo.xpm
./xa/psv.setup
./xa/xa.setup
./xa/gCAD3D.rc
./xa/ltyp.rc
./xa/xa.rc
./xa/Default.ctlg
./bin/
./bin/xa_ige_r.so
./bin/xa_obj_r.so
./bin/xa_stl_r.so
./bin/xa_stp_r.so
./bin/xa_wrl_r.so
./bin/DemoAssy1.so
./bin/Demo_Decode_Obj.so
./bin/DemoKondensatorplatte.so
./bin/DemoPlugin_Create.so
./bin/DemoPlugin_Dialog.so
./bin/DemoPlugin_Hili.so
./bin/DemoPlugin_Resolv.so
./bin/DemoPostProc.so
./ut/
./gtk/
./gr/
./db/
./ci/
./ctlg/
./ctlg/aussenpanel.ctlg
./ctlg/Profile.ctlg
./ctlg/Schrauben.ctlg
./Schrau/
./Schrau/SB.gcad
./Schrau/SKM.gcad
./Schrau/SKS.gcad
./Profile/
./Profile/ProfilN1.gcad
./Profile/ProfilR.gcad
./wc/
./wc/Demo1.mac
./wc/Demo2.mac
./pp/
./gCAD3D
./gCAD3D_Linux.txt
./gCAD3D.sh
./Uninstall
./License_de.txt
./License_en.txt
./gCAD3D.xpm
./unInstall.xpm
./gCAD3D.gxInst
./gxInst.files
.............. 73 |deskinfo %1% %PRODUCT% %PRODUCT%.xpm|
 str1=|/home/wang/gCAD3D/|
xa_log |InstallationDirectory INSDIR is /home/wang/gCAD3D/|
 str1=|gCAD3D|
xa_log |Desktop-Executable-Filename is gCAD3D|
 str2=|gCAD3D.xpm|
xa_log |Desktop-Icon-Filename is gCAD3D.xpm|
xa_log | Copy File  /tmp/gCAD3D-1/gCAD3D  >  /home/wang/gCAD3D/|
 system |cp -f /tmp/gCAD3D-1/gCAD3D /home/wang/gCAD3D/.|
 system |chmod +x /home/wang/gCAD3D/gCAD3D|
xa_log | Copy File  /tmp/gCAD3D-1/gCAD3D.xpm  >  /home/wang/gCAD3D/|
 system |cp -f /tmp/gCAD3D-1/gCAD3D.xpm /home/wang/gCAD3D/.|
.............. 79 |uninstinfo %1%|
 str1=|/home/wang/gCAD3D/|
xa_log |UninstallationDirectory UNIDIR is /home/wang/gCAD3D/|
 system |cp -f /tmp/gCAD3D-1/unInstall.exe /home/wang/gCAD3D/gCAD3D_unInstall|
xa_log |cp -f /tmp/gCAD3D-1/unInstall.exe /home/wang/gCAD3D/gCAD3D_unInstall|
 system |chmod +x /home/wang/gCAD3D/gCAD3D_unInstall|
 system |cp -f /tmp/gCAD3D-1/unInstall.xpm /home/wang/gCAD3D/.|
xa_log |cp -f /tmp/gCAD3D-1/unInstall.xpm /home/wang/gCAD3D/.|
 system |rm -f /home/wang/gCAD3D/.unInstall.lst|
.............. 84 |deskstart|
 DesktopStartfile=|/home/wang/Desktop/gCAD3D.desktop|
xa_log |Create DesktopStartfile  /home/wang/Desktop/gCAD3D.desktop|
.............. 88 |deskmenu|
xa_log |***** ERROR update-menus not found|
.............. 93 |ifeq %LANG% 1|
 str1=|1|
 str2=|1|
.............. 94 |writefile %UNISCR% # do not remove - used for unInstall-process !|
  text=|# do not remove - used for unInstall-process !|
.............. 95 |writefile %UNISCR% butt1 C o n t i n u e|
  text=|butt1 C o n t i n u e|
.............. 96 |writefile %UNISCR% butt2 C a n c e l|
  text=|butt2 C a n c e l|
.............. 97 |writefile %UNISCR% text This will uninstall the Software %PRODUCT%-%VERS|
  text=|text This will uninstall the Software gCAD3D-1.12 from your computer.|
.............. 98 |writefile %UNISCR% text Continue ?|
  text=|text Continue ?|
.............. 99 |writefile %UNISCR% uWait|
  text=|uWait|
.............. 100 |writefile %UNISCR% text Completely remove direcory %1% from your compute|
  text=|text Completely remove direcory /home/wang/gCAD3D/ from your computer.|
.............. 101 |writefile %UNISCR% text Continue ?|
  text=|text Continue ?|
.............. 102 |writefile %UNISCR% uWait|
  text=|uWait|
.............. 103 |writefile %UNISCR% del_dir %1%|
  text=|del_dir /home/wang/gCAD3D/|
.............. 104 |writefile %UNISCR% del_file %DESKICON%|
  text=|del_file /home/wang/Desktop/gCAD3D.desktop|
.............. 105 |writefile %UNISCR% uninst_deskmenu %PRODUCT%|
  text=|uninst_deskmenu gCAD3D|
.............. 106 |writefile %UNISCR% text The Software %PRODUCT%-%VERSION% has been succes|
  text=|text The Software gCAD3D-1.12 has been successfully removed from your computer.|
.............. 107 |endif|
.............. 108 |ifeq %LANG% 2|
 str1=|1|
 str2=|2|
.............. 126 |log -------- Installation finished ----------|
xa_log |-------- Installation finished ----------|
.............. 131 |disp_txt 1 Installation finished;  display Logfile ..|
 i1=1 LANG=1
.............. 132 |disp_txt 2 Installation beendet;  Logfile wird angezeigt ..|
 i1=2 LANG=1
.............. 133 |uDispFil %LOGFILE%|
.............. 138 |butt1 1 F i n i s h|
 i1=1 LANG=1
.............. 139 |butt1 2 B e e n d e n|
 i1=2 LANG=1
.............. 140 |disp_txt 1 %PRODUCT% has been installed on your computer|
 i1=1 LANG=1
.............. 141 |disp_txt 2 %PRODUCT% wurde auf Ihrem Computer installiert.|
 i1=2 LANG=1
.............. 142 |disp_img %PRODUCT%.xpm|
gui_disp_img |/tmp/gCAD3D-1/gCAD3D.xpm|
.............. 143 |disp_txt 1 you can start %PRODUCT% with this icon on the Desktop ..|
 i1=1 LANG=1
.............. 144 |disp_txt 1 Click finish to close.|
 i1=1 LANG=1
.............. 145 |disp_txt 2 Sie koennen %PRODUCT% mit diesem Icon am Desktop starten ..|
 i1=2 LANG=1
.............. 146 |disp_txt 2 Klicken Sie Beenden zum Abschluss.|
 i1=2 LANG=1
.............. 147 |uWait|
.............. 148 |exit|
 system |rm -rf /tmp/gCAD3D-1/|
 system |rm -rf gxInstTemp.gz gxInstTemp.tgz|
wang@wang-desktop:/usr/local$


0 评论 on "在Ubuntu系统下安装*.bin程序"

 

读书毁我的BLOG Copyright 2008 All Rights Reserved Baby Blog Designed by Ipiet | All Image Presented by Tadpole's Notez