Tag Archives: ubuntu

[Solved] lto1: fatal error: bytecode stream..generated with LTO version 6.2 instead of the expected 8.1 compi

ubuntu Compile libxml2-2.9.1
./configure & make & make install
Error Messages:

lto1: fatal error: bytecode stream in file ‘/home/…/anaconda3/envs/rasa/lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6m.a’ generated with LTO version 6.2 instead of the expected 8.1
compilation terminated.
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:519: libxml2mod.la] Error 1
make[4]: Leaving directory ‘/home/…/libxml2-2.9.1/python’
make[3]: *** [Makefile:607: all-recursive] Error 1
make[3]: Leaving directory ‘/home/…/libxml2-2.9.1/python’
make[2]: *** [Makefile:450: all] Error 2
make[2]: Leaving directory ‘/home/…/libxml2-2.9.1/python’
make[1]: *** [Makefile:1304: all-recursive] Error 1
make[1]: Leaving directory ‘/home/…/libxml2-2.9.1’
make: *** [Makefile:777: all] Error 2

 

Solution:
conda install -c anaconda gcc_linux-64

[Solved] Ubuntu tab Error: _complete:96: bad math expression: operand expected at end of string

Error content

_complete:96: bad math expression: operand expected at end of string

Cause: Zsh folder permission error

Solution:

    1. view the location of the Zsh folder
compaudit
# my path is:
/usr/local/share/zsh/site-functions
/usr/local/share/zsh

Set folder user group and its user

sudo su
chown -R user.user /usr/local/share/zsh

Set folder permissions

# root
chmod g-w -R zsh/

Restart the command window

[Solved] Ubuntu Error: PCIe Bus Error:severity=Corrected, type=Physical Layer, id=00e8(Receiver ID)

Reason for error reporting: it is probably caused by imperfect peripheral driver under Ubuntu

Solution: modify the grub file as follows

# Open the grub file with sudo privileges
sudo -H gedit /etc/default/grub

# Modify the GRUB_CMDLINE_LINUX_DEFAULT parameter
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nomsi pci=noaer pcie_aspm=off"

# save and quit

# update grub
sudo update-grub

# restart

[Solved] jetson Compile pytorch Error: internal compiler error: Segmentation fault

The following error occurred when compiling pytorch by Jetson:

/usr/include/c++/7/cmath: In static member function ‘static scalar_t at::native::div_floor_kernel_cuda(at::TensorIterator&)::<lambda()>::<lambda()>::<lambda(scalar_t, scalar_t)>::_FUN(scalar_t, scalar_t)’:
/usr/include/c++/7/cmath:1302:38: internal compiler error: Segmentation fault
   { return __builtin_copysignf(__x, __y); }

This is because compiling STD::copysign() is too expensive for the Jetson platform.

There are two solutions:
1. upgrade pytorch to version 1.9. Pytorch 1.9 uses the C10::CUDA::compat::copysign()function instead of the STD::copysign()function.
2. Submit and modify the code according to this:
Workaround arm64 gcc error in std::copysign on Jetson platforms

[Solved] sqoop Import Datas to mysql error: ERROR tool.ExportTool: Error during export: Export job failed

An error occurred when exporting and importing data from hive warehouse into MySQL database with sqoop tool in Ubuntu pseudo distributed HDFS.

Give it a try

In the folder generated in ~/TMP/sqoop Chen/compile/jar. java. Copy the calss file to the/usr/local/sqoop/lib/folder, and then run the export and Import command again

The above sqoop-chen directory is sqoop user name

Export-Import command:

The above solution:

After running again, the following figure shows that the export and import succeeded:

View MySQL:

[Solved] c++: internal compiler error: Killed (program cc1plus)

@[TOC] (solution: C + +: internal compiler error: killed (program cc1plus))

1. Problems

Blogger installs sophus Library in VMware virtual machine, and an error occurs when executing make command, as shown in the following figure

2. Analyze problems

Multi party search to determine that the memory allocated to the Ubuntu system in VMware is too small. (the corresponding Ubuntu system installed on the physical machine is that the swap partition is too small)

3. Problem-solving

Shut down the virtual machine -> Increase virtual machine memory to 8g -> Re execute the make command -> Problem solving

How to Solve kaldi Gstreamer worker Run Error

INTEL MKL ERROR: /opt/intel/mkl/lib/intel64/libmkl_avx2.so: undefined symbol: mkl_sparse_optimize_bsr_trsm_i8.
Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so.
Add in the command:

export LD_PRELOAD=~/anaconda3/lib/libmkl_core.so:~/anaconda3/lib/libmkl_sequential.so

ERROR: Couldn’t create the kaldinnet2onlinedecoder element!
Couldn’t find kaldinnet2onlinedecoder element at /home/cs_hsl/kaldi/src/gst-plugin. If it’s not the right path, try to set GST_PLUGIN_PATH to the right one, and retry. You can also try to run the following command: ‘GST_PLUGIN_PATH=/home/cs_hsl/kaldi/src/gst-plugin gst-inspect-1.0 kaldinnet2onlinedecoder’.
Enter the installation directory of gst-kaldi-nnet2-online

export GST_PLUGIN_PATH=/home/cs_hsl/kaldi/tools/gst-kaldi-nnet2-online/src

[Solved] Ubuntu using blender script error: Numpy cannot be found

When rendering with blender script on Ubuntu 16, use the command blender — background — Python * Py, an error is reported and numpy cannot be found. But I installed numpy in CONDA environment, so I was puzzled.

Later, I learned that blender has its own Python interpreter. When running my py script, the built-in Python interpreter does not install the numpy extension library, so an error is reported.

Solution:

Find the Python interpreter directory for blender in your environment.
Open blender, shift+F4 and go to blender's Python interpreter
You can see the version of Python that comes with it, then use whereis python for that version and find the interpreter's directory
Use sudo apt-get install python version-numpy to install the third-party library for blender's own Python interpreter