這是在 http://qlj.sh.cn/linux/20090203/3d-background-img/ 看到的文章, 摘錄如下
執行 gconf-editor (不用 sudo), 在其中
apps–nautilus–preferences 在右邊的選項找到 show_desktop项,把它的勾選取消掉
0.7.4版:
在 Desktop 的 Desktop Cube 中 (所以要先設定 Cube) 的 Appearace下之在background images 中, 依序增加多背圖片即可。
0.7.6版和0.7.8版:
在Utility(工具)裡的 Wallpaper選項下,新加 N 個圖片即可。
不過有人報告 ubuntu 8.10 的 nautilus 有 bug, 所以沒有這些選項 (我的 AMD86 8.10 即屬這種情況, 所以還沒有試)
see also: http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=14318&viewmode=compact&order=ASC&type=&mode=0&start=10
2010年1月25日
在 ubuntu 9.10 裝 自行打包的 gretl 1.8.6
同樣, 先下載 我自行打包的 gretl-1.8.6 for ubuntu 8.04
gretl_gretl-1.8.6-1_i386.deb
用 gdebi 安裝此 deb 檔 (應該顯示, 相依性已滿足), 然後下指令執行 gretl
/usr/local/bin$ cd ~
$ /usr/local/bin/gretl
/usr/local/bin/gretl_x11: error while loading shared libraries: libgretl-1.0.so.0: cannot open shared object file: No such file or directory
這個問題, 之前安裝在 ubuntu 8.04 時遇過, 解決方法是:
在 /usr/local/lib 下, 找到
libgretl-1.0.so.0 和其它 3 個以 libgretl* 開始的檔案, 都複製到 /usr/lib
接著找不到 lapack.so.0
/usr/local/bin/gretl_x11: error while loading shared libraries: liblapack.so.3: cannot open shared object file: No such file or directory
應該是少了 lapack, 試著在 synaptic 裝 liblapack-dev,
之後用管理權限, 在 /usr/lib 下, 找到 liblapack.so, 複制成 liblapack.so.3
再用管理權限, 在 /usr/lib 下, 找到 libblas.so, 複制成 libblas.so.3
還久 libg2c.so.0, 但在 ubuntu 9.10 下找不到 libg2c-dev
先裝了 libgtk2.0-dev (它會自動安裝一大些 packages)
再裝 gfortran-4.4
都沒有用
直接將 libg2c.s0.0.0 下載至 /usr/lib, 再用 link 看能不能騙過去
再裝 libfftw3-3-dev
OK了! 自己打包的 gretl 可以在 ubuntu (但別忘了裝 gunplot)
gretl_gretl-1.8.6-1_i386.deb
用 gdebi 安裝此 deb 檔 (應該顯示, 相依性已滿足), 然後下指令執行 gretl
/usr/local/bin$ cd ~
$ /usr/local/bin/gretl
/usr/local/bin/gretl_x11: error while loading shared libraries: libgretl-1.0.so.0: cannot open shared object file: No such file or directory
這個問題, 之前安裝在 ubuntu 8.04 時遇過, 解決方法是:
在 /usr/local/lib 下, 找到
libgretl-1.0.so.0 和其它 3 個以 libgretl* 開始的檔案, 都複製到 /usr/lib
接著找不到 lapack.so.0
/usr/local/bin/gretl_x11: error while loading shared libraries: liblapack.so.3: cannot open shared object file: No such file or directory
應該是少了 lapack, 試著在 synaptic 裝 liblapack-dev,
之後用管理權限, 在 /usr/lib 下, 找到 liblapack.so, 複制成 liblapack.so.3
再用管理權限, 在 /usr/lib 下, 找到 libblas.so, 複制成 libblas.so.3
還久 libg2c.so.0, 但在 ubuntu 9.10 下找不到 libg2c-dev
先裝了 libgtk2.0-dev (它會自動安裝一大些 packages)
再裝 gfortran-4.4
都沒有用
直接將 libg2c.s0.0.0 下載至 /usr/lib, 再用 link 看能不能騙過去
再裝 libfftw3-3-dev
OK了! 自己打包的 gretl 可以在 ubuntu (但別忘了裝 gunplot)
2010年1月23日
安裝 (非 compile) gretl 1.8.6 - 1.8.7 on ubuntu 8.04
先下載 我自行打包的 gretl-1.8.6 for ubuntu 8.04
gretl_gretl-1.8.6-1_i386.deb
用 gdebi 安裝此 deb 檔 (應該顯示, 相依性已滿足), 然後下指令執行 gretl
XXX@ubu804-desktop:~$ gretl
/usr/local/bin/gretl_x11: error while loading shared libraries: liblapack.so.3: cannot open shared object file: No such file or directory
用管理權限, 在 /usr/lib 下, 找到 liblapack.so, 複制成 liblapack.so.3 即可
XXX@ubu804-desktop:~$ gretl
/usr/local/bin/gretl_x11: error while loading shared libraries: libblas.so.3: cannot open shared object file: No such file or directory
用管理權限, 在 /usr/lib 下, 找到 libblas.so, 複制成 libblas.so.3 即可
XXX@ubu804-desktop:~$ gretl
/usr/local/bin/gretl_x11: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory
用 synaptic 安裝 libg2c-dev 套件即可
XXX@ubu804-desktop:~$ gretl
gretl window 終於出現了, 但是沒有選單, 一定是少了什麼
試安裝 libgtk2.0-dev (系統會自動安裝許多其它相關套件...), 之後仍然有相同的錯誤
再試移除原有的 gretl (1.8.0), 還是不行, 試了
sudo apt-get autoremove
之後, 有些必要的套不見了:
XXX@ubu804-desktop:~$ gretl
/usr/local/bin/gretl_x11: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory
XXX@ubu804-desktop:~$ sudo apt-get install libgmp3-dev
sudo apt-get install fftw3-dev
終於成功了
gretl 1.8.7 以後有問題的話, 試試
gretl_gretl-1.8.6-1_i386.deb
用 gdebi 安裝此 deb 檔 (應該顯示, 相依性已滿足), 然後下指令執行 gretl
XXX@ubu804-desktop:~$ gretl
/usr/local/bin/gretl_x11: error while loading shared libraries: liblapack.so.3: cannot open shared object file: No such file or directory
用管理權限, 在 /usr/lib 下, 找到 liblapack.so, 複制成 liblapack.so.3 即可
XXX@ubu804-desktop:~$ gretl
/usr/local/bin/gretl_x11: error while loading shared libraries: libblas.so.3: cannot open shared object file: No such file or directory
用管理權限, 在 /usr/lib 下, 找到 libblas.so, 複制成 libblas.so.3 即可
XXX@ubu804-desktop:~$ gretl
/usr/local/bin/gretl_x11: error while loading shared libraries: libg2c.so.0: cannot open shared object file: No such file or directory
用 synaptic 安裝 libg2c-dev 套件即可
XXX@ubu804-desktop:~$ gretl
gretl window 終於出現了, 但是沒有選單, 一定是少了什麼
試安裝 libgtk2.0-dev (系統會自動安裝許多其它相關套件...), 之後仍然有相同的錯誤
再試移除原有的 gretl (1.8.0), 還是不行, 試了
sudo apt-get autoremove
之後, 有些必要的套不見了:
XXX@ubu804-desktop:~$ gretl
/usr/local/bin/gretl_x11: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory
XXX@ubu804-desktop:~$ sudo apt-get install libgmp3-dev
sudo apt-get install fftw3-dev
終於成功了
gretl 1.8.7 以後有問題的話, 試試
sudo aptitude install liblapack-dev
2010年1月22日
Ubuntu 8,04 下的 GJR-garchm for gretl 1.8.4
gertl 估計結果
? ret = garchm(r, 1, 2, l1, 1, 0, 0, 0, 0.7, 1, 1, null, null)
================================================================
GJR-GARCH-in-Mean fucntion for gretl by Yi-Nung Yang
Chung Yuan Christian University, Taiwan
http://yaya.it.cycu.edu.tw/gretl
================================================================
The coefficient of GJR Term is gamma_i
Presample variance: backcast (parameter = 0.7)
Initial Values:
b1=-0.131806, omega=1.126780, alpha1=0.120000, alpha2=0.040000, gamma1=0.040000, beta1=0.600000,
------- mean eq & variance eq in this GARCH model --------
e= y -b1*X1
h = omega +alpha1*(e(-1))^2+alpha2*(e(-2))^2+gamma1*(e(-1))^2*(e(-1)<0)+beta1*h(-1)
================================================================
Using numerical derivatives
Tolerance = 1.81899e-012
Function evaluations: 166
Evaluations of gradient: 39
Model 8: 最大概似法 (ML), using observations 3-1361 (T = 1359)
ll = -0.5*(log(2*pi)+log(h) + (e^2)/h)
Standard errors based on Outer Products matrix
estimate std. error t-ratio p-value
--------------------------------------------------------
b1 -0.0670351 0.0246001 -2.725 0.0064 ***
omega 0.0101593 0.00146715 6.924 4.38e-012 ***
alpha1 -0.0870361 0.0151949 -5.728 1.02e-08 ***
alpha2 0.0597284 0.0162602 3.673 0.0002 ***
gamma1 0.146400 0.0172923 8.466 2.53e-017 ***
beta1 0.940360 0.00960635 97.89 0.0000 ***
Log-likelihood -1772.480 Akaike criterion 3556.959
Schwarz criterion 3588.246 Hannan-Quinn 3568.673
Replaced list ret
Evniews 估計結果
Dependent Variable: R
Method: ML - ARCH (Marquardt) - Normal distribution
Date: 01/22/10 Time: 01:34
Sample (adjusted): 1/06/2004 5/29/2009
Included observations: 1359 after adjustments
Estimation settings: tol= 0.00010, derivs=accurate numeric (linear)
Initial Values: C(1)=-0.13181, C(2)=1.19673, C(3)=0.13333, C(4)=0.04444,
C(5)=0.04444, C(6)=0.53333
Convergence achieved after 22 iterations
Presample variance: backcast (parameter = 0.7)
GARCH = C(2) + C(3)*RESID(-1)^2 + C(4)*RESID(-1)^2*(RESID(-1)<0) +
C(5)*RESID(-2)^2 + C(6)*GARCH(-1)
Coefficient Std. Error z-Statistic Prob.
R(-1) -0.068286 0.024528 -2.784002 0.0054
Variance Equation
C 0.010315 0.001488 6.934109 0.0000
RESID(-1)^2 -0.086935 0.015597 -5.573912 0.0000
RESID(-1)^2*(RESID(-1)<0) 0.146578 0.017262 8.491349 0.0000
RESID(-2)^2 0.059067 0.016569 3.564933 0.0004
GARCH(-1) 0.940811 0.009581 98.19407 0.0000
R-squared 0.013200 Mean dependent var -0.015854
Adjusted R-squared 0.009553 S.D. dependent var 1.330019
S.E. of regression 1.323651 Akaike info criterion 2.617407
Sum squared resid 2370.525 Schwarz criterion 2.640429
Log likelihood -1772.528 Hannan-Quinn criter. 2.626026
Durbin-Watson stat 2.145564
? ret = garchm(r, 1, 2, l1, 1, 0, 0, 0, 0.7, 1, 1, null, null)
================================================================
GJR-GARCH-in-Mean fucntion for gretl by Yi-Nung Yang
Chung Yuan Christian University, Taiwan
http://yaya.it.cycu.edu.tw/gretl
================================================================
The coefficient of GJR Term is gamma_i
Presample variance: backcast (parameter = 0.7)
Initial Values:
b1=-0.131806, omega=1.126780, alpha1=0.120000, alpha2=0.040000, gamma1=0.040000, beta1=0.600000,
------- mean eq & variance eq in this GARCH model --------
e= y -b1*X1
h = omega +alpha1*(e(-1))^2+alpha2*(e(-2))^2+gamma1*(e(-1))^2*(e(-1)<0)+beta1*h(-1)
================================================================
Using numerical derivatives
Tolerance = 1.81899e-012
Function evaluations: 166
Evaluations of gradient: 39
Model 8: 最大概似法 (ML), using observations 3-1361 (T = 1359)
ll = -0.5*(log(2*pi)+log(h) + (e^2)/h)
Standard errors based on Outer Products matrix
estimate std. error t-ratio p-value
--------------------------------------------------------
b1 -0.0670351 0.0246001 -2.725 0.0064 ***
omega 0.0101593 0.00146715 6.924 4.38e-012 ***
alpha1 -0.0870361 0.0151949 -5.728 1.02e-08 ***
alpha2 0.0597284 0.0162602 3.673 0.0002 ***
gamma1 0.146400 0.0172923 8.466 2.53e-017 ***
beta1 0.940360 0.00960635 97.89 0.0000 ***
Log-likelihood -1772.480 Akaike criterion 3556.959
Schwarz criterion 3588.246 Hannan-Quinn 3568.673
Replaced list ret
Evniews 估計結果
Dependent Variable: R
Method: ML - ARCH (Marquardt) - Normal distribution
Date: 01/22/10 Time: 01:34
Sample (adjusted): 1/06/2004 5/29/2009
Included observations: 1359 after adjustments
Estimation settings: tol= 0.00010, derivs=accurate numeric (linear)
Initial Values: C(1)=-0.13181, C(2)=1.19673, C(3)=0.13333, C(4)=0.04444,
C(5)=0.04444, C(6)=0.53333
Convergence achieved after 22 iterations
Presample variance: backcast (parameter = 0.7)
GARCH = C(2) + C(3)*RESID(-1)^2 + C(4)*RESID(-1)^2*(RESID(-1)<0) +
C(5)*RESID(-2)^2 + C(6)*GARCH(-1)
Coefficient Std. Error z-Statistic Prob.
R(-1) -0.068286 0.024528 -2.784002 0.0054
Variance Equation
C 0.010315 0.001488 6.934109 0.0000
RESID(-1)^2 -0.086935 0.015597 -5.573912 0.0000
RESID(-1)^2*(RESID(-1)<0) 0.146578 0.017262 8.491349 0.0000
RESID(-2)^2 0.059067 0.016569 3.564933 0.0004
GARCH(-1) 0.940811 0.009581 98.19407 0.0000
R-squared 0.013200 Mean dependent var -0.015854
Adjusted R-squared 0.009553 S.D. dependent var 1.330019
S.E. of regression 1.323651 Akaike info criterion 2.617407
Sum squared resid 2370.525 Schwarz criterion 2.640429
Log likelihood -1772.528 Hannan-Quinn criter. 2.626026
Durbin-Watson stat 2.145564
function list garchm (series depvar "Dep. var (應變數)", int GARCH[0:9:1] "GARCH p", int ARCH[1:9:1] "ARCH q", list indepvar[null] "Indpe var (自變數) list", int gjr_order[0:9:0] "GJR order (階次)", int option[0:3:0] "GRACH-in-Mean (選項 0:none; 1:stdev; 2:h; 3:lnh)", int LB_Q[0:200:0] "Ljung-Box Q (殘差 Q 檢定階次)", int LB_Q2[0:200:0] "Ljung-Box Q2 (殘差 Q2 檢定階次)", scalar backcast[0:1:0.7] "backcasting (參數)", bool ShowInit[0] "Show Init. (顯示起始值)?", bool save_resid[0] "Save standardized residual and h (儲存殘差和 h)?", string res_name[null] "User-defined residual (自訂殘差名稱)", string ht_name[null] "User-defined h (自訂 h 名稱)") #================================================================ # GJR-GARCH-in-Mean fucntion for gretl by Yi-Nung Yang # Chung Yuan Christian University, Taiwan # http://yaya.it.cycu.edu.tw/gretl #================================================================ set echo off set messages off # -------- variance equation ----------- # series h = omega + alpha*(e(-1))^2 + beta*h(-1) if ARCH=0 funcerr "ARCH q 必須大於 0" else string v_eq = "h = omega " string arch_param = "omega " loop j=1..ARCH --quiet sprintf arch_term "+alpha%d*(e(-%d))^2",j,j sprintf v_param "alpha%d ",j scalar @v_param = 0.04 string v_eq = v_eq ~ arch_term string arch_param = arch_param ~ v_param endloop if gjr_order>0 loop j=1..gjr_order --quiet sprintf arch_term "+gamma%d*(e(-%d))^2*(e(-%d)<0)",j,j,j sprintf v_param "gamma%d ",j scalar @v_param = 0.05 string v_eq = v_eq ~ arch_term string arch_param = arch_param ~ v_param endloop endif if GARCH>0 loop j=1..GARCH --quiet sprintf arch_term "+beta%d*h(-%d)",j,j sprintf v_param "beta%d ",j scalar @v_param = 0.04 string v_eq = v_eq ~ arch_term string arch_param = arch_param ~ v_param endloop endif endif # printf "%s\n", v_eq # printf "%s\n", arch_param tL2 = indepvar tL3 = indepvar || const genr is_const = (tL2 = tL3) if is_const = 1 tL2 -= const endif i=1 loop foreach j tL2 --quiet string temp="x" sprintf temp "X%d",i #producing tmp%d independent variables genr @temp = tL2.$j i=i+1 endloop scalar n_x = i-1 scalar j=1 # define ----------> mean eq. if is_const = 1 string m_eq = "e = y - b0 " string tParam = "b0 " else string m_eq = "e= y " string tParam = " " endif if n_x >=1 loop j=1..n_x --quiet sprintf tx "-b%d*X%d", j,j sprintf tparameter "b%d ", j scalar @tparameter = 0.0001 string m_eq = m_eq ~ tx string tParam = tParam ~ tparameter endloop endif if option>0 if option=1 string m_eq = m_eq ~ "-theta*h^0.5" string tPremium="SQRT(h)" endif if option=2 string m_eq = m_eq ~ "-theta*h" string tPremium="h" endif if option=3 string m_eq = m_eq ~ "-theta*log(h)" string tPremium="ln(h)" endif if option>3 funcerr "The GARCH-in-mean options are 1, 2, 3." endif string tParam = "theta " ~ tParam else string tPremium="None" endif # printf "%s\n", m_eq #scalar backcast=0.7 series y=depvar scalar mu = -0.037 scalar alpha1 = 0.15 - 0.03*(ARCH>1) scalar beta1 = 0.6 - 0.12*(GARCH>1) scalar gamma1=0.05 - 0.01*(ARCH>1) #### scalar theta =0.01879 scalar b0=-0.00377 scalar b1=0.5 scalar b2=0.4 #scalar omega = 1.149 #scalar omega =var(y)*(1-alpha1-beta1) scalar omega =var(y)*backcast*0.91 printf "\n\n\n\n" printf "================================================================\n" printf " GJR-GARCH-in-Mean fucntion for gretl by Yi-Nung Yang\n" printf " Chung Yuan Christian University, Taiwan\n" printf " http://yaya.it.cycu.edu.tw/gretl\n" printf "================================================================\n" if gjr_order>0 printf "The coefficient of GJR Term is gamma_i\n" endif if option>0 printf "GARCH in mean Term is %s\n",tPremium printf "The coefficient of GARCH in mean Term is theta\n" printf "----------------------------------------------------------------\n" endif printf "Presample variance: backcast (parameter = %.1f)\n",backcast # obtaining intiatial values from OLS and printing intial values # -----------ols ty const # -----------printf "islist()=%d, nelem()=%d ===>\n",islist(indepvar) ,nelem(indepvar) if nelem(indepvar) > 0 ols y indepvar --quiet # to keep the sample in use genr dum_original = $sample /* garch GARCH ARCH ; y indepvar if option=1 series tInMean=$h^0.5 elif option=2 series tInMean=$h elif option=3 series tInMean=log($h) endif */ # ----- obtaining initial value for theta (nelem>0) if option > 0 #garch GARCH ARCH ; y indepvar ols y indepvar --quiet if option=1 series tInMean=($uhat^2)^0.5 elif option=2 series tInMean=($uhat^2) elif option=3 series tInMean=log(($uhat^2)) endif ols y indepvar --quiet #series tInMean=($uhat^2)^0.5 ols y indepvar tInMean --quiet #ols y tInMean --quiet scalar theta= $coeff(tInMean) endif if ShowInit = 1 ### --- printing intial values printf "Initial Values:\n" if option >0 printf "theta=%.6f, ",theta endif endif ols y indepvar --quiet if is_const = 1 scalar b0=$coeff(const) if ShowInit = 1 ### --- printing intial values printf "b0=%.6f, ",b0 endif matrix B=$coeff k=$ncoeff-1 loop j=1..k --quiet scalar b$j = B[j+1] if ShowInit = 1 ### --- printing intial values printf "b%d=%.6f, ",j,b$j endif endloop else matrix B=$coeff k=$ncoeff loop j=1..k --quiet scalar b$j = B[j] if ShowInit = 1 ### --- printing intial values printf "b%d=%.6f, ",j,b$j endif endloop endif else # ======================--------if nelem = 0 ols y const --quiet # to keep the sample in use genr dum_original = $sample # ----- obtaining initial value for theta (nelem=0) if option > 0 #garch GARCH ARCH ; y indepvar if option=1 series tInMean=($uhat^2)^0.5 elif option=2 series tInMean=($uhat^2) elif option=3 series tInMean=log(($uhat^2)) endif ols y tInMean --quiet scalar theta= $coeff(tInMean) endif if ShowInit = 1 ### --- printing intial values printf "Initial Values:\n" if option >0 printf "theta=%.6f, ",theta endif endif endif if ShowInit = 1 ### --- printing intial values printf "omega=%.6f, ",omega loop j=1..ARCH --quiet printf "alpha%d=%.6f, ",j, alpha$j endloop if gjr_order>0 loop j=1..gjr_order --quiet printf "gamma%d=%.6f, ",j, gamma$j endloop endif if GARCH>0 loop j=1..GARCH --quiet printf "beta%d=%.6f, ",j, beta$j endloop endif endif string tAllParams = tParam ~ " " ~ arch_param # --- delete ---> printf "%s\n", tParam printf "\n------- mean eq & variance eq in this GARCH model --------\n" printf " %s\n",m_eq printf " %s\n",v_eq printf "================================================================\n" scalar presample=0 ####y[1]/backcast #see Eviews 6 Users guide, p.320 for algorithm loop j=2..100 --quiet presample = presample + backcast^(j-2)*y[j]^2 endloop mle ll = -0.5*(log(2*pi)+log(h) + (e^2)/h) series h = backcast^($nobs)*var(y) + (1-backcast)*presample #####series h = backcast^($nobs)*var(y) + (1-backcast)*(y[2]^2+backcast*y[3]^2+backcast^2*y[4]^2+backcast^3*y[5]^2+backcast^4*y[6]^2+backcast^5*y[7]^2) #------------------------series e = y - theta*h^0.5 series @m_eq #------------------------series e= y - b0 -b1*X1-b2*X2 # ---> to be deleted -----> series h = omega + alpha*(e(-1))^2 + beta*h(-1) series @v_eq params @tAllParams end mle genr dum_in_mle = $sample ##### printf ">>>>>>>>>>>>>>>>>>sample size in MLE, nobs=%d, T=%d\n",$nobs, $T # 定義計算 estimated residuals 要取幾個落後期 scalar start = $nobs-$T+1 # --- to be deleted ---> printf "NOBS=%d T=%d\n",$nobs,$T # ---- generating standardized residual and ht # ---- diagnosis of standardized residuals /* if LB_Q>0 && LB_Q2>0 smpl full series h = backcast^($nobs)*var(y) + (1-backcast)*presample series e=0 if option>0 End=$T-1 loop for j=1..End smpl j j genr @m_eq smpl +1 +1 genr @v_eq endloop genr @m_eq smpl full else series @m_eq series @v_eq endif series stz_u=e/h^0.5 series stz_u2 = stz_u^2 corrgm stz_u LB_Q --quiet corrgm stz_u2 LB_Q2 --quiet endif */ # ---- generating standardized residual (=e/h^0.5) and ht (=h) series h = backcast^($nobs)*var(y) + (1-backcast)*presample #series e=0 if option>0 End=$T-1 loop for j=start..End --quiet smpl j j genr @m_eq smpl +1 +1 genr @v_eq endloop genr @m_eq # 回復為原來的樣本 smpl dum_original --dummy --replace else series @m_eq series @v_eq endif if isstring(res_name) =0 sprintf res_name "stz_u" # default name for e(t) endif if isstring(ht_name) =0 sprintf ht_name "h" # default name for h(t) endif # 回復為原來的樣本 smpl dum_original --dummy --replace series @res_name =e/h^0.5 series @ht_name=h if LB_Q >0 corrgm @res_name LB_Q --quiet endif if LB_Q2>0 series stz_u2=@res_name^2 corrgm stz_u2 LB_Q2 --quiet endif if save_resid=1 list retlist= @res_name @ht_name return retlist else list retlist = const return retlist endif end function
2010年1月13日
裝 gretl 1.8.6 在 ubuntu 8.10 AMD64
好像缺了
lapack3
liblapack-dev_3.1.1-0.4ubuntu1_amd64.deb
要再試試這個
https://launchpad.net/ubuntu/intrepid/amd64/liblapack-dev/3.1.1-0.4ubuntu1
launchpad 套件庫
請在 /etc/apt/sources.list 加入以下兩行套件庫來源(或是透過 系統→管理→軟體來源 中的第三方軟體加入):
Ubuntu 8.10 (intredpid)
Debian:
http://packages.debian.org/squeeze/amd64/gretl/download
最後還是回到自行 compile, 但一直找不到 lapack3, 自已 compile lapack3, 一開始也不行, 後來不知道是裝了 gfortran, 還是 f2c 之後, 突然可以 compile, ./configure 之後, lapack 也有了... 莫名其妙就成功了! 打包起來 checkinstall 備用
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether ln -s works... yes
checking for sin in -lm... yes
checking for fopen in -lc... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unistd.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for an ANSI C-conforming const... yes
checking for long double with more range or precision than double... yes
checking size of int... 4
checking return type of signal handlers... void
checking whether byte ordering is bigendian... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for struct sockaddr_in... yes
checking for struct in_addr... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for tgetent in -lncurses... yes
checking for readline in -lreadline... yes
checking for rl_completion_matches in -lreadline... yes
checking for inet_addr in -lc... yes
checking for mmap... yes
checking for gzopen in -lz... yes
checking for GMP - version >= 4.0.1... yes
checking for MPFR - version >= 2.2.0... yes
checking for libgfortran... checking for _gfortran_abort in -lgfortran... yes
checking for LAPACK... yes
checking for dgejsv_ in -llapack... no
checking for gnuplot... yes
checking for PNG support in gnuplot... yes
checking for latex... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FFTW... yes
checking for GLIB... yes
checking for GTK... yes
checking for GTKPRINT... yes
checking for GTKSOURCEVIEW... no
version 2.0 not found
checking for GTKSOURCEVIEW... no
will use 1.8.5
checking for re_compile_pattern... yes
checking for re_compile_fastmap... yes
checking for re_search... yes
checking for re_match... yes
checking for GDK_PIXBUF... yes
checking for GNOME... no
no
checking for XML... yes
checking for RLIB... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gretl_sh
config.status: creating gretl.pc
config.status: creating gui2/Makefile
config.status: creating gui2/debug
config.status: creating gui2/gtksourceview/Makefile
config.status: creating gnome/Makefile
config.status: creating gnome/gretl.keys
config.status: creating cli/Makefile
config.status: creating cli/debug
config.status: creating lib/Makefile
config.status: creating plugin/Makefile
config.status: creating po/Makefile.in
config.status: creating share/Makefile
config.status: creating share/bcih/Makefile
config.status: creating tests/Makefile
config.status: creating extra/Makefile
config.status: creating osx/Makefile
config.status: creating osx/fixlinks.sh
config.status: creating redhat/gretl.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing libtool commands
Configuration:
Installation path: /usr/local
Use readline library: yes
Use gnuplot for graphs: yes
Use PNG for gnuplot graphs: yes
Use LaTeX for typesetting output: yes
Gnu Multiple Precision support: yes
MPFR support: yes
FFTW3 support: yes
Build with GTK version: 2.0
Use GTK printing apparatus: yes
Use installed gtksourceview: no
Build with gnome support: no
Build gretl documentation: no
Use Lucida fonts: no
Build message catalogs: yes
Gnome installation prefix: NA
X-12-ARIMA support: yes
TRAMO/SEATS support: yes
libR support: no
Ox support: no
Experimental audio support: no
Experimental ODBC support: no
LAPACK libraries:
-L/usr/lib -llapack -lblas -lgfortran
Now type 'make' to build gretl.
lapack3
liblapack-dev_3.1.1-0.4ubuntu1_amd64.deb
要再試試這個
https://launchpad.net/ubuntu/intrepid/amd64/liblapack-dev/3.1.1-0.4ubuntu1
launchpad 套件庫
請在 /etc/apt/sources.list 加入以下兩行套件庫來源(或是透過 系統→管理→軟體來源 中的第三方軟體加入):
deb http://ppa.launchpad.net/lxde/ubuntu hardy main deb-src http://ppa.launchpad.net/lxde/ubuntu hardy main若您使用 Ubuntu 7.10 ,您只需要將以上兩行的 hardy 改成 gutsy。
Ubuntu 8.10 (intredpid)
Debian:
http://packages.debian.org/squeeze/amd64/gretl/download
最後還是回到自行 compile, 但一直找不到 lapack3, 自已 compile lapack3, 一開始也不行, 後來不知道是裝了 gfortran, 還是 f2c 之後, 突然可以 compile, ./configure 之後, lapack 也有了... 莫名其妙就成功了! 打包起來 checkinstall 備用
========================================
configuring for gretl 1.8.6cvs (library version 0.0.56)checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking whether ln -s works... yes
checking for sin in -lm... yes
checking for fopen in -lc... yes
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for unistd.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking byteswap.h usability... yes
checking byteswap.h presence... yes
checking for byteswap.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for an ANSI C-conforming const... yes
checking for long double with more range or precision than double... yes
checking size of int... 4
checking return type of signal handlers... void
checking whether byte ordering is bigendian... no
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for struct sockaddr_in... yes
checking for struct in_addr... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for tgetent in -lncurses... yes
checking for readline in -lreadline... yes
checking for rl_completion_matches in -lreadline... yes
checking for inet_addr in -lc... yes
checking for mmap... yes
checking for gzopen in -lz... yes
checking for GMP - version >= 4.0.1... yes
checking for MPFR - version >= 2.2.0... yes
checking for libgfortran... checking for _gfortran_abort in -lgfortran... yes
checking for LAPACK... yes
checking for dgejsv_ in -llapack... no
checking for gnuplot... yes
checking for PNG support in gnuplot... yes
checking for latex... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FFTW... yes
checking for GLIB... yes
checking for GTK... yes
checking for GTKPRINT... yes
checking for GTKSOURCEVIEW... no
version 2.0 not found
checking for GTKSOURCEVIEW... no
will use 1.8.5
checking for re_compile_pattern... yes
checking for re_compile_fastmap... yes
checking for re_search... yes
checking for re_match... yes
checking for GDK_PIXBUF... yes
checking for GNOME... no
no
checking for XML... yes
checking for RLIB... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gretl_sh
config.status: creating gretl.pc
config.status: creating gui2/Makefile
config.status: creating gui2/debug
config.status: creating gui2/gtksourceview/Makefile
config.status: creating gnome/Makefile
config.status: creating gnome/gretl.keys
config.status: creating cli/Makefile
config.status: creating cli/debug
config.status: creating lib/Makefile
config.status: creating plugin/Makefile
config.status: creating po/Makefile.in
config.status: creating share/Makefile
config.status: creating share/bcih/Makefile
config.status: creating tests/Makefile
config.status: creating extra/Makefile
config.status: creating osx/Makefile
config.status: creating osx/fixlinks.sh
config.status: creating redhat/gretl.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing libtool commands
Configuration:
Installation path: /usr/local
Use readline library: yes
Use gnuplot for graphs: yes
Use PNG for gnuplot graphs: yes
Use LaTeX for typesetting output: yes
Gnu Multiple Precision support: yes
MPFR support: yes
FFTW3 support: yes
Build with GTK version: 2.0
Use GTK printing apparatus: yes
Use installed gtksourceview: no
Build with gnome support: no
Build gretl documentation: no
Use Lucida fonts: no
Build message catalogs: yes
Gnome installation prefix: NA
X-12-ARIMA support: yes
TRAMO/SEATS support: yes
libR support: no
Ox support: no
Experimental audio support: no
Experimental ODBC support: no
LAPACK libraries:
-L/usr/lib -llapack -lblas -lgfortran
Now type 'make' to build gretl.
自行打包 deb for gretl 1.8.6 in ubuntu 8.04
上一則 PO 已成功 compile gretl-1.8.6, 我在想, 可以打包成 deb, 以便安裝在其它的 (ubuntu 8.04) 電腦嗎, google 之後, 發現有人討論, see 討論來源:
如果只是單純的從原始碼經過編譯之後,自己做成deb檔案自己用,應該不用這麼複雜的去宣告有的沒有的。
通常原始碼都有 autogen.sh 或者 configure 檔案可以執行設定系統資訊。執行之後如果有缺乏的套件,會顯示出來告訴你需要安裝。
只要沒有錯誤,就可以執行編譯了
編譯之前,請先安裝checkinstall這個套件
sudo apt-get install checkinstall
make clean # 預防萬一,先清除暫存檔案
make # 開始編譯
經過漫長的編譯過程,編譯完成之後,請執行
sudo checkinstall
會問你一些小問題,不知道就按enter過去就好。
這個程式會模擬安裝你所編譯好的軟體,並且將編譯好的檔案做成deb檔案。是個很方便很好用的軟體。
試試看吧!
通常原始碼都有 autogen.sh 或者 configure 檔案可以執行設定系統資訊。執行之後如果有缺乏的套件,會顯示出來告訴你需要安裝。
只要沒有錯誤,就可以執行編譯了
編譯之前,請先安裝checkinstall這個套件
sudo apt-get install checkinstall
make clean # 預防萬一,先清除暫存檔案
make # 開始編譯
經過漫長的編譯過程,編譯完成之後,請執行
sudo checkinstall
會問你一些小問題,不知道就按enter過去就好。
這個程式會模擬安裝你所編譯好的軟體,並且將編譯好的檔案做成deb檔案。是個很方便很好用的軟體。
試試看吧!
最後顯示訊息:
**********************************************************************
Done. The new package has been installed and saved to
/home/yinung/gretl-1.8.6/gretl_1.8.6-1_i386.deb
You can remove it from your system anytime using:
dpkg -r gretl
**********************************************************************
Done. The new package has been installed and saved to
/home/yinung/gretl-1.8.6/gretl_1.8.6-1_i386.deb
You can remove it from your system anytime using:
dpkg -r gretl
**********************************************************************
待在其它電腦安裝看看囉!
/usr/local/bin$ cd ~
$ /usr/local/bin/gretl
/usr/local/bin/gretl_x11: error while loading shared libraries: libgretl-1.0.so.0: cannot open shared object file: No such file or directory
還是沒成功
在 /usr/local/lib 下, 找到
libgretl-1.0.so.0 和其它 3 個以 libgretl* 開始的檔案 (2個是 link 檔)
都複製到
/usr/lib
應該就 OK了
/usr/local/bin$ cd ~
$ /usr/local/bin/gretl
/usr/local/bin/gretl_x11: error while loading shared libraries: libgretl-1.0.so.0: cannot open shared object file: No such file or directory
還是沒成功
在 /usr/local/lib 下, 找到
libgretl-1.0.so.0 和其它 3 個以 libgretl* 開始的檔案 (2個是 link 檔)
都複製到
/usr/lib
應該就 OK了
2010年1月12日
再次 try 安裝 gretl 1.8.6 on ubuntu 8.04
之前一直無法搞定 packages dependence 的問題, 在 gretl-user list 的建議下, 決定自行 compile
1. 先安裝基本 packages
下列的【新】套件都將被安裝:
autotools-dev cpp gcc-4.2-doc libc6 libc6-dev libc6-i686 linux-libc-dev m4
建議(Suggested)的套件:
autoconf2.13 autobook autoconf-archive gnu-standards autoconf-doc
automake1.9-doc bison-doc cpp-doc gcc-multilib manpages-dev glibc-doc gcj
gfortran fortran95-compiler libtool-doc
推薦(Recommended)的套件:
automaken libltdl3-dev
下列的【新】套件都將被安裝:
autoconf automake1.9 autotools-dev bison flex gcc-4.2-doc gcc-doc libc6-dev
libtool linux-libc-dev m4
下列的套件都將更新:
cpp gcc libc6 libc6-i686
更新 4 個套件,新安裝 11 個套件,刪除 0 個套件,另不更新 503 個套件。
需要下載 13.5MB 的檔案。
After this operation, 29.9MB of additional disk space will be used.
繼續執行嗎? 是按 [Y] 鍵,否按 [n] 鍵 y
下列的【新】套件都將被安裝:
gcc-4.1-base
下列的【新】套件都將被安裝:
gcc-4.1-base libgfortran1
sudo apt-get install libglib2.0-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
libglib2.0-0
建議(Suggested)的套件:
libglib2.0-doc
推薦(Recommended)的套件:
libglib2.0-data
下列的【新】套件都將被安裝:
libglib2.0-dev
下列的套件都將更新:
libglib2.0-0
sudo apt-get install libpng12-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
libpng12-0 zlib1g-dev
下列的【新】套件都將被安裝:
libpng12-dev zlib1g-dev
下列的套件都將更新:
libpng12-0
sudo apt-get install libxslt1-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
libxml2 libxml2-dev libxslt1.1
下列的【新】套件都將被安裝:
libxml2-dev libxslt1-dev
下列的套件都將更新:
libxml2 libxslt1.1
sudo apt-get install lapack3-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
cpp-3.4 g77 g77-3.4 gcc-3.4 gcc-3.4-base lapack3 libg2c0 libg2c0-dev
refblas3 refblas3-dev
建議(Suggested)的套件:
g77-doc g77-3.4-doc gcc-3.4-doc lib64gcc1 libc6-dev-amd64
下列的【新】套件都將被安裝:
cpp-3.4 g77 g77-3.4 gcc-3.4 gcc-3.4-base lapack3 lapack3-dev libg2c0
libg2c0-dev refblas3 refblas3-dev
sudo apt-get install fftw3-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
注意,選擇了 libfftw3-dev 而非 fftw3-dev
下列的【新】套件都將被安裝:
libfftw3-dev
sudo apt-get install libreadline5-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
libncurses5-dev
下列的【新】套件都將被安裝:
libncurses5-dev libreadline5-dev
sudo apt-get install libgmp3-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
libgmpxx4ldbl
建議(Suggested)的套件:
libgmp3-doc libmpfr-dev
推薦(Recommended)的套件:
libstdc++-dev
下列的【新】套件都將被安裝:
libgmp3-dev libgmpxx4ldbl
sudo apt-get install gnuplot
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
gnuplot-nox gnuplot-x11
建議(Suggested)的套件:
gnuplot-doc
下列的【新】套件都將被安裝:
gnuplot gnuplot-nox gnuplot-x11
sudo apt-get install texlive
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
tex-common texlive-base texlive-base-bin texlive-common texlive-doc-base
texlive-fonts-recommended texlive-latex-base texlive-latex-recommended
建議(Suggested)的套件:
texlive-doc-en
推薦(Recommended)的套件:
dvipdfmx lmodern perl-tk texlive-base-bin-doc texlive-fonts-recommended-doc
tipa texlive-latex-base-doc latex-beamer latex-xcolor prosper
texlive-latex-recommended-doc
下列的【新】套件都將被安裝:
tex-common texlive texlive-base texlive-base-bin texlive-common
texlive-doc-base texlive-fonts-recommended texlive-latex-base
texlive-latex-recommended
缺的 packages:
libfortran1-dev pkgconfig
sudo apt-get install libgtk2.0-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
The following packages were automatically installed and are no longer required:
libgfortran2 libblas3gf libmpfr1ldbl liblapack3gf
Use 'apt-get autoremove' to remove them.
下列的【新】套件都將被安裝:
gtk2-engines-pixbuf libatk1.0-dev libcairo2 libcairo2-dev libexpat1-dev
libfontconfig1-dev libfreetype6 libfreetype6-dev libgtk2.0-0 libice-dev
libpango1.0-0 libpango1.0-common libpango1.0-dev libpixman-1-dev
libpthread-stubs0 libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev
libxcb-xlib0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev
libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev
libxrandr-dev libxrender-dev x11proto-composite-dev x11proto-core-dev
x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev
x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
x11proto-xinerama-dev xtrans-dev
建議(Suggested)的套件:
libcairo2-doc libgtk2.0-doc ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp
ttf-arphic-gkai00mp ttf-baekmuk ttf-thryomanes libpango1.0-doc
下列的【新】套件都將被安裝:
libatk1.0-dev libcairo2-dev libexpat1-dev libfontconfig1-dev
libfreetype6-dev libgtk2.0-dev libice-dev libpango1.0-dev libpixman-1-dev
libpthread-stubs0 libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev
libxcb-xlib0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev
libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev
libxrandr-dev libxrender-dev x11proto-composite-dev x11proto-core-dev
x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev
x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
x11proto-xinerama-dev xtrans-dev
下列的套件都將更新:
gtk2-engines-pixbuf libcairo2 libfreetype6 libgtk2.0-0 libpango1.0-0
libpango1.0-common
2. ./configure (網友 Hélio Guilherme 建議先不要用 ./configure --enable-build-doc)
這次果然成功了, 告訴我可以 "make" 了
3. make and sudo make install
但發現在 /usr/local/bin 下, 只有 gretlcli 和 gretl-config, 並沒有 gui 介面的 gretl
檢查後, 發現沒有 libgtk2.0-dev
再次安裝
sudo apt-get install libgtk2.0-dev
再重覆步驟 2-3, 終於成功了!
1. 先安裝基本 packages
sudo apt-get install gcc autoconf automake1.9 libtool flex bison gcc-doc
以前找不到 libc6 和 libc6-dev 這次竟然會自動去找...下列的【新】套件都將被安裝:
autotools-dev cpp gcc-4.2-doc libc6 libc6-dev libc6-i686 linux-libc-dev m4
建議(Suggested)的套件:
autoconf2.13 autobook autoconf-archive gnu-standards autoconf-doc
automake1.9-doc bison-doc cpp-doc gcc-multilib manpages-dev glibc-doc gcj
gfortran fortran95-compiler libtool-doc
推薦(Recommended)的套件:
automaken libltdl3-dev
下列的【新】套件都將被安裝:
autoconf automake1.9 autotools-dev bison flex gcc-4.2-doc gcc-doc libc6-dev
libtool linux-libc-dev m4
下列的套件都將更新:
cpp gcc libc6 libc6-i686
更新 4 個套件,新安裝 11 個套件,刪除 0 個套件,另不更新 503 個套件。
需要下載 13.5MB 的檔案。
After this operation, 29.9MB of additional disk space will be used.
繼續執行嗎? 是按 [Y] 鍵,否按 [n] 鍵 y
sudo apt-get install libgfortran1
下列的【新】套件都將被安裝:
gcc-4.1-base
下列的【新】套件都將被安裝:
gcc-4.1-base libgfortran1
sudo apt-get install libglib2.0-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
libglib2.0-0
建議(Suggested)的套件:
libglib2.0-doc
推薦(Recommended)的套件:
libglib2.0-data
下列的【新】套件都將被安裝:
libglib2.0-dev
下列的套件都將更新:
libglib2.0-0
sudo apt-get install libpng12-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
libpng12-0 zlib1g-dev
下列的【新】套件都將被安裝:
libpng12-dev zlib1g-dev
下列的套件都將更新:
libpng12-0
sudo apt-get install libxslt1-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
libxml2 libxml2-dev libxslt1.1
下列的【新】套件都將被安裝:
libxml2-dev libxslt1-dev
下列的套件都將更新:
libxml2 libxslt1.1
sudo apt-get install lapack3-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
cpp-3.4 g77 g77-3.4 gcc-3.4 gcc-3.4-base lapack3 libg2c0 libg2c0-dev
refblas3 refblas3-dev
建議(Suggested)的套件:
g77-doc g77-3.4-doc gcc-3.4-doc lib64gcc1 libc6-dev-amd64
下列的【新】套件都將被安裝:
cpp-3.4 g77 g77-3.4 gcc-3.4 gcc-3.4-base lapack3 lapack3-dev libg2c0
libg2c0-dev refblas3 refblas3-dev
sudo apt-get install fftw3-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
注意,選擇了 libfftw3-dev 而非 fftw3-dev
下列的【新】套件都將被安裝:
libfftw3-dev
sudo apt-get install libreadline5-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
libncurses5-dev
下列的【新】套件都將被安裝:
libncurses5-dev libreadline5-dev
sudo apt-get install libgmp3-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
libgmpxx4ldbl
建議(Suggested)的套件:
libgmp3-doc libmpfr-dev
推薦(Recommended)的套件:
libstdc++-dev
下列的【新】套件都將被安裝:
libgmp3-dev libgmpxx4ldbl
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
gnuplot-nox gnuplot-x11
建議(Suggested)的套件:
gnuplot-doc
下列的【新】套件都將被安裝:
gnuplot gnuplot-nox gnuplot-x11
sudo apt-get install texlive
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
下列的【新】套件都將被安裝:
tex-common texlive-base texlive-base-bin texlive-common texlive-doc-base
texlive-fonts-recommended texlive-latex-base texlive-latex-recommended
建議(Suggested)的套件:
texlive-doc-en
推薦(Recommended)的套件:
dvipdfmx lmodern perl-tk texlive-base-bin-doc texlive-fonts-recommended-doc
tipa texlive-latex-base-doc latex-beamer latex-xcolor prosper
texlive-latex-recommended-doc
下列的【新】套件都將被安裝:
tex-common texlive texlive-base texlive-base-bin texlive-common
texlive-doc-base texlive-fonts-recommended texlive-latex-base
texlive-latex-recommended
缺的 packages:
libfortran1-dev pkgconfig
sudo apt-get install libgtk2.0-dev
讀取套件清單中... 完成
了解套件依存關係中
Reading state information... 完成
The following packages were automatically installed and are no longer required:
libgfortran2 libblas3gf libmpfr1ldbl liblapack3gf
Use 'apt-get autoremove' to remove them.
下列的【新】套件都將被安裝:
gtk2-engines-pixbuf libatk1.0-dev libcairo2 libcairo2-dev libexpat1-dev
libfontconfig1-dev libfreetype6 libfreetype6-dev libgtk2.0-0 libice-dev
libpango1.0-0 libpango1.0-common libpango1.0-dev libpixman-1-dev
libpthread-stubs0 libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev
libxcb-xlib0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev
libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev
libxrandr-dev libxrender-dev x11proto-composite-dev x11proto-core-dev
x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev
x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
x11proto-xinerama-dev xtrans-dev
建議(Suggested)的套件:
libcairo2-doc libgtk2.0-doc ttf-arphic-bsmi00lp ttf-arphic-gbsn00lp
ttf-arphic-gkai00mp ttf-baekmuk ttf-thryomanes libpango1.0-doc
下列的【新】套件都將被安裝:
libatk1.0-dev libcairo2-dev libexpat1-dev libfontconfig1-dev
libfreetype6-dev libgtk2.0-dev libice-dev libpango1.0-dev libpixman-1-dev
libpthread-stubs0 libpthread-stubs0-dev libsm-dev libx11-dev libxau-dev
libxcb-xlib0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev
libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev
libxrandr-dev libxrender-dev x11proto-composite-dev x11proto-core-dev
x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev
x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
x11proto-xinerama-dev xtrans-dev
下列的套件都將更新:
gtk2-engines-pixbuf libcairo2 libfreetype6 libgtk2.0-0 libpango1.0-0
libpango1.0-common
2. ./configure (網友 Hélio Guilherme 建議先不要用 ./configure --enable-build-doc)
這次果然成功了, 告訴我可以 "make" 了
3. make and sudo make install
但發現在 /usr/local/bin 下, 只有 gretlcli 和 gretl-config, 並沒有 gui 介面的 gretl
檢查後, 發現沒有 libgtk2.0-dev
再次安裝
sudo apt-get install libgtk2.0-dev
再重覆步驟 2-3, 終於成功了!
訂閱:
文章 (Atom)