如何在 Debian 中啟動 SPSS-statistics 23?
我在 Debian 8.5 中安裝了大學許可證,但沒有配置任何路徑並且忘記了預設位置是什麼。通過搜尋SPSS,我無法在 $PATH 中看到有關該程序的任何內容。安裝迭代
- 我第一次以非root身份安裝系統,但後來發現它應該以root身份完成。
- 現在,第二次,我以 root 身份安裝它,因為安裝文件是這樣說的,對於使用者masi
# let the IBM directory be executable by the user masi chown -R masi:masi /opt/IBM/ root@root:~/Downloads$ bash ./SPSSSC_23.0_LINUX_X86-64_ML.bin
- 嘗試在 IBM 網站上註冊產品時的輸出。圖 1以 root 身份安裝 SPSS 後沒有 D-bus daemon running消息
3. 現在,第三次,讓 masi 顯式執行二進製文件,但正如您稍後可以看到的,在 (2) 中一切都井井有條,因為這裡也有相同的輸出
root@masi:/home/masi/Downloads# chmod u+x SPSSSC_23.0_LINUX_X86-64_ML.bin root@masi:/home/masi/Downloads$ ./SPSSSC_23.0_LINUX_X86-64_ML.bin
- 設置使用者
masi
。點擊接受一切。成功輸入序列號。嘗試註冊產品,但得到與圖 1 完全相同的輸出。- 嘗試表完成,
sp
但你得到masi@masi:~/Downloads$ sp spctoppm speaker-test speech-dispatcher splitfont spotread sputoppm spd-conf spec2cie splain splitindex sprof spuunmux spd-say specplot split splitti3 spumux
嘗試在Debian搜尋下找到*spss*`super` ,但那裡什麼也沒有。 安裝前我的系統特性 我之前以 root 身份進行的`chown -R masi:masi /opt/IBM/`
masi@masi:~/Downloads$ ls -la /opt/ total 20 drwxr-xr-x 5 root root 4096 Sep 15 00:01 . drwxr-xr-x 22 root root 4096 Sep 15 13:21 .. drwxr-xr-x 3 root root 4096 Sep 1 22:58 google drwxrwxr-x 3 masi masi 4096 Sep 15 00:01 IBM drwxr-xr-x 3 root root 4096 Sep 11 10:23 kingsoft
masi@masi:~/Downloads$ ls -la /opt/IBM/ total 12 drwxrwxr-x 3 masi masi 4096 Sep 15 00:01 . drwxr-xr-x 5 root root 4096 Sep 15 00:01 .. drwxrwxr-x 3 masi masi 4096 Sep 15 00:01 SPSS
masi@masi:~/Downloads$ ls -la /opt/IBM/SPSS/ total 12 drwxrwxr-x 3 masi masi 4096 Sep 15 00:01 . drwxrwxr-x 3 masi masi 4096 Sep 15 00:01 .. drwxrwxr-x 3 masi masi 4096 Sep 15 00:01 Statistics
masi@masi:~/Downloads$ ls -la /opt/IBM/SPSS/Statistics/ total 12 drwxrwxr-x 3 masi masi 4096 Sep 15 00:01 . drwxrwxr-x 3 masi masi 4096 Sep 15 00:01 .. drwxrwxr-x 15 masi masi 4096 Sep 15 13:17 23
masi@masi:~/Downloads$ ls -la /opt/IBM/SPSS/Statistics/23/ total 92 drwxrwxr-x 15 masi masi 4096 Sep 15 13:17 . drwxrwxr-x 3 masi masi 4096 Sep 15 00:01 .. drwxr-xr-x 10 masi masi 12288 Sep 15 13:22 bin drwxr-xr-x 4 masi masi 4096 Feb 12 2015 common drwxr-xr-x 2 masi masi 4096 Feb 12 2015 config drwxr-xr-x 4 masi masi 4096 Feb 12 2015 ext drwxr-xr-x 40 masi masi 4096 Sep 15 13:17 extensions drwxr-xr-x 4 masi masi 20480 Sep 15 13:17 lib drwxrwxr-x 3 masi masi 4096 Sep 15 00:04 license drwxrwxr-x 2 masi masi 4096 Sep 15 00:04 Looks drwxrwxr-x 3 masi masi 4096 Sep 15 00:04 properties drwxrwxr-x 7 masi masi 4096 Sep 15 00:04 Python drwxrwxr-x 3 masi masi 4096 Sep 15 00:04 Samples drwxr-xr-x 2 masi masi 4096 Feb 4 2015 scripts -rw-rw-r– 1 root root 0 Sep 15 13:17 SPSS_Statistics_23.0.spec -rwxr-xr-x 1 masi masi 580 Sep 13 2013 tar.sh drwxrwxr-x 3 masi masi 4096 Sep 15 00:06 Uninstall_IBM SPSS Statistics 23
我認為問題在於 SPSS 不在我的 PATH 中並且不知道要啟動哪個命令。 官方安裝說明 ------ > > > ``` > Installing from a Downloaded File E Start a terminal application. > E Change to the directory where you downloaded the file. > E Extract the contents of the file. > E Change to the directory where you extracted the files. > E Make sure the permissions for setup.bin are set to execute. > E At the command prompt, type: ./setup.bin > E Follow the instructions that appear in the installation program. See Notes for Installation for any special instructions. > > ``` > > 測試勞諾的提議 ------- 以root身份安裝後的工作流程
root@masi:/home/masi# apt-get install dbus Reading package lists… Done Building dependency tree
Reading state information… Done dbus is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y Setting up nginx-full (1.6.2-5+deb8u2+b1) … Job for nginx.service failed. See ‘systemctl status nginx.service’ and ‘journalctl -xn’ for details. invoke-rc.d: initscript nginx, action “start” failed. dpkg: error processing package nginx-full (–configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of nginx: nginx depends on nginx-full (>= 1.6.2-5+deb8u2) | nginx-light (>= 1.6.2-5+deb8u2) | nginx-extras (>= 1.6.2-5+deb8u2); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. nginx depends on nginx-full (<< 1.6.2-5+deb8u2.1~) | nginx-light (<< 1.6.2-5+deb8u2.1~) | nginx-extras (<< 1.6.2-5+deb8u2.1~); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed.dpkg: error processing package nginx (–configure): dependency problems - leaving unconfigured Errors were encountered while processing: nginx-full nginx E: Sub-process /usr/bin/dpkg returned an error code (1)
以 root 身份安裝後嘗試安裝 Java JRE
https://wiki.debian.org/Java
root@masi:/home/masi# apt-get install default-jre Reading package lists… Done Building dependency tree
Reading state information… Done The following NEW packages will be installed: default-jre 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. Need to get 968 B of archives. After this operation, 21.5 kB of additional disk space will be used. Get:1 http://ftp.fi.debian.org/debian/ jessie/main default-jre amd64 2:1.7-52 [968 B] Fetched 968 B in 0s (21.7 kB/s)
Selecting previously unselected package default-jre. (Reading database … 265271 files and directories currently installed.) Preparing to unpack …/default-jre_2%3a1.7-52_amd64.deb … Unpacking default-jre (2:1.7-52) … Setting up nginx-full (1.6.2-5+deb8u2+b1) … Job for nginx.service failed. See ‘systemctl status nginx.service’ and ‘journalctl -xn’ for details. invoke-rc.d: initscript nginx, action “start” failed. dpkg: error processing package nginx-full (–configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of nginx: nginx depends on nginx-full (>= 1.6.2-5+deb8u2) | nginx-light (>= 1.6.2-5+deb8u2) | nginx-extras (>= 1.6.2-5+deb8u2); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed. nginx depends on nginx-full (<< 1.6.2-5+deb8u2.1~) | nginx-light (<< 1.6.2-5+deb8u2.1~) | nginx-extras (<< 1.6.2-5+deb8u2.1~); however: Package nginx-full is not configured yet. Package nginx-light is not installed. Package nginx-extras is not installed.dpkg: error processing package nginx (–configure): dependency problems - leaving unconfigured Setting up default-jre (2:1.7-52) … Errors were encountered while processing: nginx-full nginx E: Sub-process /usr/bin/dpkg returned an error code (1)
研究上面日誌消息中鼓勵的故障
root@masi:/home/masi# systemctl status nginx.service ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled) Active: failed (Result: exit-code) since Fri 2016-09-16 19:41:12 EEST; 1h 26min ago Process: 10908 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE) Process: 10905 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Sep 16 19:41:11 masi nginx[10908]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Sep 16 19:41:11 masi nginx[10908]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Sep 16 19:41:11 masi nginx[10908]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Sep 16 19:41:11 masi nginx[10908]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Sep 16 19:41:12 masi nginx[10908]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Sep 16 19:41:12 masi nginx[10908]: nginx: [emerg] bind() to [::]:80 failed (98: Address already in use) Sep 16 19:41:12 masi nginx[10908]: nginx: [emerg] still could not bind() Sep 16 19:41:12 masi systemd[1]: nginx.service: control process exited, code=exited status=1 Sep 16 19:41:12 masi systemd[1]: Failed to start A high performance web server and a reverse proxy server. Sep 16 19:41:12 masi systemd[1]: Unit nginx.service entered failed state.
`journalctl -xn`通過外掛`adblock`似乎阻止某些網路流量來研究故障,因此可以解釋`d-bus`警告,因此可能與我無法在終端中啟動 SPSS 無關
lines 1-11/11 (END)…skipping… – Logs begin at Fri 2016-09-09 12:00:17 EEST, end at Fri 2016-09-16 21:02:26 EEST. – Sep 16 21:01:40 masi dbus[1248]: [system] Activating via systemd: service name=‘org.freedesktop.hostname1’ unit=‘dbus-org.freedesktop.hostname1.service’ Sep 16 21:01:41 masi dbus[1248]: [system] Successfully activated service ‘org.freedesktop.hostname1’ Sep 16 21:01:55 masi google-chrome.desktop[25690]: A Parser-blocking, cross-origin script, http://js.indexww.com/ht/mtvfi.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. Sep 16 21:01:55 masi google-chrome.desktop[25690]: A Parser-blocking, cross-origin script, http://js.indexww.com/ht/mtvfi.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. Sep 16 21:01:55 masi google-chrome.desktop[25690]: A Parser-blocking, cross-origin script, http://ad.doubleclick.net/adj/test.home/htb;tile=1;sz=980x120;ord=6803931308961870?, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. Sep 16 21:01:56 masi google-chrome.desktop[25690]: A Parser-blocking, cross-origin script, http://netti.mtvmedia.fi/eas?EASformat=jsvars::EAScus=291&c1-5-0=1028, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. Sep 16 21:01:56 masi google-chrome.desktop[25690]: A Parser-blocking, cross-origin script, http://netti.mtvmedia.fi/eas?EASformat=jsvars::EAScus=291&c1-5-0=1028, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. Sep 16 21:02:26 masi google-chrome.desktop[25690]: A Parser-blocking, cross-origin script, http://js.indexww.com/ht/mtvfi.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. Sep 16 21:02:26 masi google-chrome.desktop[25690]: A Parser-blocking, cross-origin script, http://js.indexww.com/ht/mtvfi.js, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity. Sep 16 21:02:26 masi google-chrome.desktop[25690]: A Parser-blocking, cross-origin script, http://ad.doubleclick.net/adj/test.home/htb;tile=1;sz=980x120;ord=6803931308961870?, is invoked via document.write. This may be blocked by the browser if the device has poor network connectivity.
作業系統:Debian 8.5 64 位 Linux 核心:4.6 of backports 硬體:Asus Zenbook UX303UA SPSS-statistics:IBM SPSS Statistics Desktop v23 (Linux)
您需要 Oracle 的 Java,而不是 Debian 的預設 JRE/… 以 root 身份執行,按照此處的指南進行操作
apt-get purge openjdk-7-jre
和/或通過將軟體包的一些數據留在您的系統中進行相關;以後可能需要- 將以下內容添加到
/etc/apt/sources.list
# Debian 8 "Jessie" deb http://httpredir.debian.org/debian/ jessie main contrib
- 更新軟體包並
java-package
從contrib安裝apt-get update && apt-get install java-package
- 在他們的網站上下載 Oracle Java;在此處為 Debian 選擇 .tar.gz
- 以非 root 身份建構 .tar,因為安裝程序可能會損壞您的系統,尤其是
/etc/
fakeroot make-jpkg jre-8u102-linux-x64.tar.gz
- 安裝以 root 身份創建的二進製文件
su dpkg -i oracle-java8-jre_8u102_amd64.deb
- 配置預設 Java 版本,但找不到沒有錯誤的包
# http://unix.stackexchange.com/q/310790/16920 # successfully done here; you can ignore JDK errors because JRE only needed
- 現在通過程序執行 SPSS
spssclient
,/opt/IBM/SPSS/Statistics/23/bin/
這masi
是這裡的預設配置;成功啟動 SPSS 的 GUImasi@masi:/opt/IBM/SPSS/Statistics/23/bin# ./spssclient root@masi:/opt/IBM/SPSS/Statistics/23/bin# ls -la | grep spssclient -rwxrwxr-x 1 masi masi 178 Sep 19 12:17 spssclient
/opt
為程序創建別名,因為每次在;中找到它的工作量很大。等放在你的$HOME/.bashrc
alias spss="/opt/IBM/SPSS/Statistics/23/bin/spssclient"
嘗試 :
apt-get install dbus
考慮安裝 Oracle Java 並檢查您使用的使用者帳戶的安裝目標文件夾的安裝時寫入權限:)