Questa è una vecchia versione del documento!
Scientific Linux 6.x admin log
[ Back ]
## Nov 19, 2014 ##
PyROOT installation
By default, PyROOT bindings ROOT.py
and libPyROOT.so
have not been created despite the usage of –enable-python
when running the configure
script. Actually, neither Python header files (e.g. /usr/include/python2.x/Python.h
)
nor libraries (e.g. /usr/lib/libpython2.x.so
) are included in a basic Desktop installation.
In fact, python-libs
and python-devel
packages are missing.
linux% sudo yum install python-libs python-devel
Then re-run the configure/make/make install
procedure again to install missing PyROOT components:
linux% ./configure --enable-python --with-python-incdir=/usr/include/python2.6 --with-python-libdir=/usr/lib ... Checking for Python.h ... /usr/include/python2.6 Checking for python2.6, libpython2.6, libpython, python, or Python ... /usr/lib ...
At the end, $ROOTSYS/lib/ROOT.py
and $ROOTSYS/lib/libPyROOT.so
have been properly installed. To use ROOT within Python,
the proper environment is correctly setup by sourcing the thisroot.chs
script.
ROOT installation
1. Install required prerequisites (i.e. libX11 header files, 4.4 MB) according to
http://root.cern.ch/drupal/content/build-prerequisites
linux% sudo yum install libX11-devel libXpm-devel libXft-devel libXext-devel
2. Download and extract source code (72 MB) from root.cern.ch (v. 5.34) in the user local area
linux% cd ~/local/opt/ linux% wget http://root.cern.ch/download/root_v5.34.23.source.tar.gz linux% tar -xzf root_v5.34.23.source.tar.gz linux% mv root root_v5.34.23 linux% ln -s root_v5.34.23 root
3. Define a ROOTSYS
environment variable to specify a target top installation directory (everything will be installed under $ROOTSYS
)
linux% setenv ROOTSYS ~/local/opt/root
4. Create the Makefile
by running the configure
script with options
linux% cd root linux% ./configure --help linux% ./configure linux --enable-python --enable-roofit
5. Build ROOT (use -jN
to speed-up the process)
linux% make -j5
6. Install everything
linux% make install
7. Setup the proper UNIX environment using the thisroot.csh
script that comes with the ROOT installation.
setenv ROOTSYS ~/local/opt/root source $ROOTSYS/bin/thisroot.csh
Note
Don't put a source /path/to/thisroot.csh
statement in the home ~/.chsrc
file! It doesn't work with csh/tcsh!
Missing fonts
At ROOT startup, warnings about missing fonts appear:
linux% root Couldn't find font "-adobe-helvetica-medium-r-*-*-10-*-*-*-*-*-iso8859-1", trying "fixed". Please fix your system so helvetica can be found, this font typically is in the rpm (or pkg equivalent) package XFree86-[75,100]dpi-fonts or fonts-xorg-[75,100]dpi. ...
Fixed by installing all xorg-x11-font*
packages (12 MB). This is the same issues encountered with Cadence IC6.x!
linux# yum install xorg-x11-font* (it doesn't work with sudo!)
## Nov 18, 2014 ##
Installed basic development tools (gcc/g++, glibc) and dependences
No compilers/development tools are available if a basic Desktop installation is performed.
linux% sudo yum install gcc gcc-c++
Binutils (/usr/bin/ld
) and make (/usr/bin/make
) are already included in the basic distro.
Note
/usr/bin/gcc
is required by Xilinx ISim simulator!
FATAL_ERROR:Simulator:CompilerUtils.cpp:570:1.51 - /usr/bin/gcc not found, please install GCC for your Linux distribution For technical support on this issue, please visit http://www.xilinx.com/support.
## Nov 17, 2014 ##
New fresh installation of SL 6.3 32-bit on my home laptop (Desktop installation).
Enable sudo for default non-root user
1. as root, edit the /etc/sudoers
config file and decomment the line
# %wheel ALL=(ALL) ALL
2. add the standard user to the wheel
group,
linux# usermod -aG wheel userame
3. logout and log back in
Turn on the wireless
linux% sudo /sbin/modprobe acer-wmi
Xilinx USB/JTAG cable setup with Spartan-3AN Starter Kit
Installed Xilinx ISE 14.6 under
~/local/opt/edatools/xilinx/ISE14.6
.
1. The libusb
package has been already included in the default installation:
linux% ls -l /usr/lib | grep libusb lrwxrwxrwx. 1 root root 19 Apr 19 2008 libusb-0.1.so.4 -> libusb-0.1.so.4.4.4 -rwxr-xr-x. 1 root root 33844 Nov 23 2010 libusb-0.1.so.4.4.4 lrwxrwxrwx. 1 root root 19 Apr 19 2008 libusb-1.0.so.0 -> libusb-1.0.so.0.1.0 -rwxr-xr-x. 1 root root 59700 Jun 21 2012 libusb-1.0.so.0.1.0 lrwxrwxrwx. 1 root root 19 Apr 19 2008 libusbmuxd.so.1 -> libusbmuxd.so.1.0.0 -rwxr-xr-x. 1 root root 19916 Nov 24 2010 libusbmuxd.so.1.0.0 lrwxrwxrwx. 1 root root 21 Apr 19 2008 libusbpp-0.1.so.4 -> libusbpp-0.1.so.4.4.4 -rwxr-xr-x. 1 root root 19120 Nov 23 2010 libusbpp-0.1.so.4.4.4 lrwxrwxrwx. 1 root root 21 Nov 18 02:56 libusbpp.so -> libusbpp-0.1.so.4.4.4 lrwxrwxrwx. 1 root root 19 Nov 18 02:56 libusb.so -> libusb-0.1.so.4.4.4
linux% sudo yum install libusb ... Package libusb-0.1.12-23.el6.i686 already installed and latest version Nothing to do
2. Install the libusb-devel
package, required by Xilinx iMPACT sofware to use libusb instead of windrv6 for
configuration bitstream downloads:
linux% sudo yum install libusb-devel
or from pkgs.org
linux% wget http://mirror.centos.org/centos/6/os/i386/Packages/libusb-devel-0.1.12-23.el6.i686.rpm linux% sudo rpm -i libusb-devel-0.1.12-23.el6.i686.rpm
3. Install the fxload
package, required in the udev rules file (/sbin/fxload
) provided by Xilinx for proper cable recognition
linux% wget http://pkgrepo.linuxtech.net/el6/release/i686/fxload-2008_10_13-3.el6.i686.rpm linux% sudo rpm -i fxload-2008_10_13-3.el6.i686.rpm
4. Copy default Xilinx firmware files (.hex) under /usr/share
linux% sudo cp ~/local/opt/edatools/xilinx/ISE14.6/ISE/bin/lin/xusb*.hex /usr/share
or
linux% sudo cp ~/local/opt/edatools/xilinx/ISE14.6/common/bin/lin/xusb*.hex /usr/share
or
linux% sudo cp ~/local/opt/edatools/xilinx/ISE14.6/common/bin/lin/install_script/install_drivers/linux_drivers/pcusb/xusb*.hex /usr/share
Note
The three set of files are identical. The latest version of install_drivers/
can be downloaded from
https://secure.xilinx.com/webreg/clickthrough.do?cid=103670 (Xilinx login required)
5. Copy the default Xilinx udev rules file xusbdfwu.rules
under /usr/udev/rules.d/
e.g.
linux% sudo cp ~/local/opt/edatools/xilinx/ISE14.6/ISE/bin/lin/xusbdfwu.rules /etc/udev/rules.d
6. The syntax of the xusbdfwu.rules
provided by Xilinx is obsolete and doesn't work with new versions of udev. Edit the /etc/udev/rules.d/xusbdfwu.rules
by replacing
SYSFS
⇒ATTRS
BUS
⇒SUBSYSTEMS
$TEMPNODE
⇒$tempnode
or delete the entire contents of the file and cut and paste the following statements:
ATTRS{idVendor}=="03fd", ATTRS{idProduct}=="0008", MODE="666" SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="03fd", ATTRS{idProduct}=="0007", RUN+="/sbin/fxload -v -t fx2 -I /usr/share/xusbdfwu.hex -D $tempnode" SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="03fd", ATTRS{idProduct}=="0009", RUN+="/sbin/fxload -v -t fx2 -I /usr/share/xusb_xup.hex -D $tempnode" SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="03fd", ATTRS{idProduct}=="000d", RUN+="/sbin/fxload -v -t fx2 -I /usr/share/xusb_emb.hex -D $tempnode" SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="03fd", ATTRS{idProduct}=="000f", RUN+="/sbin/fxload -v -t fx2 -I /usr/share/xusb_xlp.hex -D $tempnode" SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="03fd", ATTRS{idProduct}=="0013", RUN+="/sbin/fxload -v -t fx2 -I /usr/share/xusb_xp2.hex -D $tempnode" SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="03fd", ATTRS{idProduct}=="0015", RUN+="/sbin/fxload -v -t fx2 -I /usr/share/xusb_xse.hex -D $tempnode"
7. Plug the standard A/B USB cable and ensure that the green LED on the board (Cable_Ready
) will turn on. Note that the output of lsusb
now recognizes the cable with product ID 0008
instead of 000d
.
linux% lsusb ... Bus 002 Device 012: ID 03fd:000d Xilinx, Inc. # unrecognized cable ...
linux% lsusb ... Bus 002 Device 012: ID 03fd:0008 Xilinx, Inc. # recognized cable ...