When trying to build rpms with the latest Slurm on CentOS 5.X, you will get the following error when trying to use all slurm commands:
Segmentation fault.
OR
sinfo: Resetting MaxJobCnt from 4294967294 to 4294687295 (MaxJobId - FirstJobId + 1)sinfo: error: is_valid_path: path is NULL!sinfo: error: Bad value "(null)" for PluginDir sinfo: fatal: Unable to process configuration file
To fix it please disable the optimization during building the rpms:
rpmbuild -tb -D 'with_cflags CFLAGS="-O0 -g3"' slurm-14.03.6.tar.bz2
In case Ganglia's web page is unreachable while Apache is working, check Apache's error log for the following error:
PHP: Fatal Error: Allowed Memory Size of XXXXXX Bytes Exhausted
To solve this, we need to increase the size limit by using the following command:
## XXXM or -1 to set no limit at all.
sed -i 's/memory_limit.*/memory_limit = 512M/g' /etc/php.ini
OR
sed -i 's/memory_limit.*/memory_limit = -1/g' /etc/php.ini
When getting the following error:
kernel: LustreError: 11-0: fs01-MDT0000-lwp-MDT0000: Communicating with 0@lo, operation mds_connect failed with -11.
Please make sure to create MGS, MDT and at least one OST before starting the services.
The following error can been seen in logs after disabling IPv6:
May 30 19:04:58 master postfix[16588]: fatal: parameter inet_interfaces: no local interface found for ::1
This prevents postfix from starting, to fix it use the following command:
sed -i 's/^inet_protocols = all/inet_protocols = ipv4/g' /etc/postfix/main.cf
Start postfix :) :
service postfix start
If you enocunter the following error:
make[2]: *** [samples/cpp/CMakeFiles/tutorial_how_to_scan_images.dir/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp.o] Error 1make[1]: *** [samples/cpp/CMakeFiles/tutorial_how_to_scan_images.dir/all] Error 2
Edit the CMake file and remove the building of examples:
sed -i 's/BUILD_EXAMPLES:BOOL=ON/BUILD_EXAMPLES:BOOL=OFF/g' CMakeCache.txt
If you encounter the following errors while trying to compile OpenCV 2.4.8 with Python 2.7.5:
OpenCV-2.4.3/modules/features2d/src/freak.cpp:437: error: unable to find a register to spill in class 'GENERAL_REGS'
OR
Generating pyopencv_generated_funcs.h, pyopencv_generated_func_tab.h, pyopencv_generated_types.h, pyopencv_generated_type_reg.h, pyopencv_generated_const_reg.h
Edit the following file using vi or any other text editor:
vi modules/features2d/CMakeFiles/opencv_features2d.dir/build.make
Search for freak.cpp and add -O0 after each $(CXX_FLAGS), it should look like this:
/usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -O0 -o CMakeFiles/opencv_features2d.dir/src/freak.cpp.o -c /root/Downloads/Python_Project/opencv-2.4.8/modules/features2d/src/freak.cpp
/usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -O0 -E /root/Downloads/Python_Project/opencv-2.4.8/modules/features2d/src/freak.cpp > CMakeFiles/opencv_features2d.dir/src/freak.cpp.i
/usr/bin/c++ $(CXX_DEFINES) $(CXX_FLAGS) -O0 -S /root/Downloads/Python_Project/opencv-2.4.8/modules/features2d/src/freak.cpp -o CMakeFiles/opencv_features2d.dir/src/freak.cpp.s
Add the i386 repository:
dpkg --add-architecture i386
Update all repositories:
sudo apt-get update
Download the multi arch version of Skype:
http://www.skype.com/en/download-skype/skype-for-computer/
Install the package:
dpkg -i skype-install.debsudo apt-get -f install