Linux

Gentoo/Fedora/RedHat/archLinux…想的到的,想不到的,通通在這裡…

在CentOS 7 Linux上安裝graph-tool. Building and Installing graph-tool on CentOS 7

在CentOS 7 Linux上安裝graph-tool. Building and Installing graph-tool on CentOS 7

最近因為使用需求而要在CentOS 7上頭安裝graph-tool,這是graph-tool官網對環境以及套件需求,只有倒數3項是不必要的: (I have to use graph-tool in CentOS 7, the following are the requirements for system environmentsand software packages. Only the last three are not necessary.)

Graph-tool was tested extensively only on GNU/Linux and MacOS X systems, but should also be usable on other systems where the below requirements are met.

  • A C++14 compiler (GCC version 5 or above, or clang version 3.4 or above).
  • The Boost libraries, version 1.54 or above.
  • Python version 2.7, 3 or above.
  • The expat library.
  • The SciPy python module.
  • The Numpy python module, version 1.7 or above.
  • The CGAL C++ geometry library, version 3.5 or above.
  • The sparsehash template library (optional, but recommended).
  • The GTK+ 3, cairomm, pycairo and matplotlib libraries, used for graph drawing (optional).
  • The Graphviz packaged for graph drawing, with the python bindings enabled (optional, deprecated).

但是CentOS7的gcc版本是gcc-4.8.5-4.el7.x86_64,比要求的gcc 5還舊,另外內建的boost是boost-1.53.0-25.el7.x86_64,比要求的1.54還舊;在安裝過程又遇到一堆dependency的問題,已經很久沒裝套件搞得這麼痛苦了,最後終於搞定,在此記錄一下:(However, the default gcc of CentOS7 is gcc-4.8.5-4.el7.x86_64 which is older than the required gcc 5. The built-in boost version is boost-1.53.0-25.el7.x86_64, which is older than boost 1.54. Besides, there are lot of dependency problems… This is a very hard way to setup all these tools for graph-tool. The following are the records to build and install graph-tool in CentOS 7 Linux.)

Continue reading

Xming,XWin32的替代品

由於需要在Linux上跑J-Sim來做模擬,因此在Windows上就必須安裝像是XWin32或是Cygwin來做X-Server
不過XWin32要錢,Cygwin又肥又大…

gslin長輩這個網頁看到了Xming這個好物
只有幾MB大小,再加灌30多MB的字型,總共還用不到50MB,不會比XWin32大多少,卻是free的!

只要將putty的X11 forwarding勾起來,使用上跟XWin32差不多
哇 哈哈~ 居然發現這種好康物! Xming這個網頁還有更詳細的介紹

推薦大家使用!

使用Intel內建顯示卡跑Xwindow並加入電視卡支援

之前我們在電腦教室或是使用vmware跑archLinux時,設定Xwindow時我們是用vesa這支古老的相容顯示卡驅動程式,但是這對於一些像播放影片或是3D效果而言是相當不夠的。
 

加上我的期末專題打算在archLinux底下裝上Compro T300這張DVB-T/類比雙用電視卡作為streaming輸出,這也得先在Xwindow底下先做測試,確定能夠收看才行;因此我們必需先讓framebuffer功能得到支援。

Continue reading