Tag Archives: ubuntu

Ubuntu System Goland Error: External file changes sync may be slow: The current inotify(7) watch limit is too low

 

vim /etc/sysctl.conf

Increase the value of fs.inotify.max_user_watches inside (or add the following line if you don't have this value).
fs.inotify.max_user_watches=524288

After saving, execute.
sysctl -p

Restart Goland it's OK

Link: https://stackoverflow.com/questions/65064450/how-to-fix-external-file-changes-sync-may-be-slow-the-current-inotify7-watch

Configuring Google Android test station for Ubuntu

ATS: definition and configuration method

The above configuration method is very detailed, but some small problems are encountered in the actual operation. It is summarized as follows:

1. If you execute MTT start in the desktop command window, you will be prompted that the MTT command is not supported and you need to install a watv:

Solution: follow the prompts and use apt command to install

2. Unable to run MTT

Solution: create a new atsstation folder on the desktop (the name of this folder can be taken at will), then download MTT and move it to this directory

Where to download:

Getting the Android Test Station CLI

Download the command line interface (CLI) package here.

 

3. Open the command window in atsstation and execute MTT start, and directly prompt: VBI: open failed [/ dev/vbi0] error

Solution: first grant the execution permission to the MTT file, sudo Chmod – R 774 MTT, and then start the MTT through./MTT start (note that “. /”) and the interface will display as follows:

Note that the following is a pull file from the Google server, which is related to the computer and the network. The length of time varies. Just wait patiently, showing “ATS is serving at” http://localhost:8000 “After that, it indicates that the MTT service has been started successfully. At this time, you can access the address on the web page

 

Ubuntu Error: libcublas.so.8.0 [How to Solve]

Error reporting when using Yolo in QT program:

./conjugateGradientPrecond: error while loading shared libraries: libcublas.so.8.0: cannot open shared object file: No such file or directory

solution:
first find libcublas. So. 8.0   Where is this file?It’s on my system ubuntu16.04. Where is the file  /Usr/local/cuda-8.0/lib64 /
then:

sudo gedit  /etc/ld.so.conf.d/cuda.conf

Add directory to document

 /usr/local/cuda-8.0/lib64/   

When finished, then:

sudo ldconfig
``` 
Remember to always use sudo, unless you are under root.

 

A start job is running for dev disk by when Ubuntu starts

write in front: this blog is my original, no reprint in any form! This blog is only allowed to be placed in the blog Garden (. Cnblogs. Com). If you see this blog post on other websites, please go to the original through the only legal link below

the only legal URL of this blog: http://www.cnblogs.com/acm-icpcer/p/8448519.html

I’m on my blog

The most complete and detailed: Linux kernel compilation and device driver writing under Ubuntu 16.04 (for novices)

There is something wrong with the “virtual machine expansion” in . Originally, it was no problem to operate according to the steps I described (because I later installed Linux on Lenovo antique all-in-one machine at home and found that there was no problem), but maybe it was the first time when I attached the hard disk to the virtual machine that swap was not set properly, It’s not a big problem that Linux kernel can’t sense the existence of the hard disk switch area, because Linux is within 90 seconds by default. If it doesn’t sense the swap switch area, it will execute the default boot program to start the operating system, but this will increase the boot time by 90 seconds. That’s too much+ How can 90s give up the chance of life extension?So this article will continue… No, put forward a solution to the problem

first of all, we can find the error statements of Linux kernel in the boot interface:

a start job is running for dev-disk-by uuid <disk-partition-uuid>

this is the root of all evils. Linux has been delayed for 90 seconds here, but this sentence is not understood. It doesn’t matter. After the 90 seconds delay, there is another unimportant sentence:

Denpendency failed for Swap

before, I didn’t find a solution because I didn’t see the most critical warning. After seeing this sentence, I suddenly realized that there was something wrong with the exchange area

so how to solve this problem?Naturally, we have to go to the exchange area and execute the command:

swapon --show

if your swap area is normal, it will be like this:

abnormal is this:

in other words, you execute the command to view the swap area, but you can’t find the swap area. That is to say, your operating system doesn’t have a swap area at all. This is a very troublesome thing, because in this way, the data exchange between the operating system memory and the virtual memory is carried out directly. First of all, it will slow down the system throughput, because the virtual memory is on the hard disk, whether it is SSD or mechanical Winchester hard disk, their speed is far less than DRAM memory; Secondly, without the buffer effect of the switch area, a large amount of data is written directly from the memory to the hard disk, which will be unbearable and cause certain damage. In short, in the long run, there is no exchange zone, which is a very serious problem. Especially for large servers, this is a fatal injury, because if the access volume is too large or the server is attacked by DDoS, the server’s hard disk is likely to burn out directly

however, now that you know what the problem is, it’s easy to solve it. We know that the operating system perceives processes through PCB, threads through TCB, and jobs waiting to be scheduled through JCB. Then the operating system must perceive the data exchange area through an East, which is the UUID number

first execute the following command to view the existing hard disk:

mount

the result is:

the above is the result of my repair. If not, we can see from the execution result that the swap area is not mounted

enter the following command to view the UUID prepared by the operating system for the switch area:

sudo blkid

The results of implementation are shown in the following figure:

from the second message/dev/sda5, you can see the UUID that the swap area should have

look at the UUID actually generated after we failed to mount the hard disk:

sudo nano /etc/fstab

after execution, it is found that the two UUIDs are inconsistent, and then it is known that the problem lies in the UUID

if you know the problem, it’s easy to do. Just change the UUID of the swap partition in the/etc/fstab file. That is to say, open VIM through command to modify:

sudo vim /etc/fstab

remember to use sudo’s permission to modify here, because /etc/fstab file is a system file, which can only be read but not written without administrator’s permission

modify the UUID of the swap in the file to the UUID that should be held by the swap just viewed with the command sudo blkid. The following figure shows the result of successful modification:

restart the operating system and fix the problem. Life extension + 90s

  

  

[email protected]

2018/2/14

Ubuntu Error: Invalid or corrupt jarfile xxx.jar [How to Solve]

1. Problem description

After packaging Maven project into jar package in Ubuntu environment, run the following instructions:

1 $ java -jar my.jar

An error occurred:

1 Error: Invalid or corrupt jarfile my.jar

2. Problem analysis

First, make sure that the jar package is not damaged during transmission

If the jar package is not damaged, it is most likely that the entry information is misconfigured or lost

3. Solutions

Case 1: the configuration of information in manifest.mf file in meta-inf folder in Java directory is wrong

Open the manifest.mf file and observe whether the main function entry corresponding to main class: is correct, for example:

1 Manifest-Version: 1.0
2 Main-Class: com.myproject.Main

Case 2: the information in manifest.mf file is configured correctly, but the program entry cannot be found correctly

In this case, the entry information may be lost in the packaging process, there are too many entries, the main entry is not specified, or the entry cannot be successfully found for other reasons. You can use the – CP instruction to forcibly specify the program entry. The instruction is as follows:

1 $ java -cp my.jar com.myproject.Main

After finding the entry, the program can run smoothly

[Solved] Ubuntu Startup Errors were found while checking the disk-drive for /

The main reason for this error is that the hard disk fails to pass the test. Here are two ways to avoid this problem:

Modify grub

This method is quite popular on the Internet. Post it directly:

When entering the Startup menu of Ubuntu, select * Ubuntu with the cursor, and press the e key on the keyboard to enter the startup item editing mode

Use the cursor to locate the position as shown in the figure below, change RO to RW, and press F10 to guide the system according to the modified parameters

Enter sudo GEDIT/etc/grub.d/10_ Enter after lupin:

Enter the user password and press enter to call the text editor to open the boot item configuration file, and replace ro ${args} with RW ${args}

Save the file, then sudo update grub updates grub, and restart

Disable hard disk detection

The first method may lead to similar problems in the future. The most fundamental method is to prohibit Ubuntu from checking the hard disk when it starts. So how to prohibit it

Modify the/etc/fstab file, change the last digit 1/2 of the corresponding line of each mount item to 0, and then save it

# < file system> < mount point> < type> < options> < dump> < pass>

#/was on /dev/sda1 during installation

UUID=80c83157-8cfd-46e8-be12-993d5fcb6c20/ ext4 defaults 0 0

# /boot was on /dev/sda6 during installation

UUID=04197eeb-babf-4568-8686-cf4a31751827 /boot ext4 defaults 0 0

# /opt was on /dev/sda5 during installation

UUID=8685f4ea-3b2e-4bce-a729-a7a0629925f1 /opt ext4 defaults 0 0

# swap was on /dev/sda7 during installation

UUID=90de3311-1664-4532-8677-fa1f665af82a none swap sw 0 0

~

fatal error: Python.h: No such file or directory solution methods

Fatal error: Python.h: No such file or directory under Ubuntu

Install the python-devlibrary according to the Python version used .

sudo apt-get install python-dev   # for python2.x installs
sudo apt-get install python3-dev  # for python3.x installs

For example, in the case of using Python 3.6, pass:

sudo apt-get install python3.6-dev

Install python-dev.

“Failed to load ldlinux. C32” appears during Ubuntu installation

After chopping hands, the fraud call came before the express delivery was received. How to improve the privacy and security of e-commerce>>>

“Failed to load ldlinux. C32” appears during Ubuntu installation

Using UltraISO to make the U disk of Ubuntu 18.04 to start, the F12 key appears when the USB starts

one

two

Failed to load ldlinux.c32

Boot failed: please change disks and press a key to

continue

There are many queries on the Internet and many attempts have been made

Guess if there is something wrong with the writing mode when the production starts, try several writing modes (usb-hdd, usb-hdd +, usb-zip), and all fail

Finally, select the write mode “raw”, success, the problem is solved, and the system can be started smoothly when installing

select “raw” as the writing mode when recording image, and solve it successfully

PS: use raw mode to write the Ubuntu system to the U disk. At this time, in my computer, the size of the U disk becomes 2MB. Don’t panic. Next blog https://www.cnblogs.com/yuanyufei/p/11387879.html This problem can be solved

Source of the original text: https://www.cnblogs.com/yuanyufei/p/11387773.html

Error installing wxPython in Ubuntu: failed to build wxPython

Why can’t you stop buying 618?From the technical dimension to explore>>>

In recent days, I’m installing wxPython. I want to try it on my Ubuntu. As a result, I can’t install it. I haven’t found the information for several days, and the error report is as follows:

Collecting wxpython
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/cb/4f/1e21d3c079c973ba862a18f3be73c2bbe2e6bc25c96d94df605b5cbb494d/wxPython-4.1.0.tar.gz (65.8 MB)
Requirement already satisfied: pillow in ./miniconda3/envs/label/lib/python3.7/site-packages (from wxpython) (7.2.0)
Requirement already satisfied: six in ./miniconda3/envs/label/lib/python3.7/site-packages (from wxpython) (1.15.0)
Requirement already satisfied: numpy in ./miniconda3/envs/label/lib/python3.7/site-packages (from wxpython) (1.19.1)
Building wheels for collected packages: wxpython
  Building wheel for wxpython (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/frank/miniconda3/envs/label/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ykws_i7y/wxpython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ykws_i7y/wxpython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-cgy5ip8x
       cwd: /tmp/pip-install-ykws_i7y/wxpython/
  Complete output (138 lines):
  running bdist_wheel
  running build
  WARNING: Building this way assumes that all generated files have been
  generated already.  If that is not the case then use build.py directly
  to generate the source and perform the build stage.  You can use
  --skip-build with the bdist_* or install commands to avoid this
  message and the wxWidgets and Phoenix build steps in the future.
  
  "/home/frank/miniconda3/envs/label/bin/python" -u build.py build
  Will build using: "/home/frank/miniconda3/envs/label/bin/python"
  3.7.7 (default, May  7 2020, 21:25:33)
  [GCC 7.3.0]
  Python's architecture is 64bit
  cfg.VERSION: 4.1.0
  
  Running command: build
  Running command: build_wx
  wxWidgets build options: ['--wxpython', '--unicode', '--gtk3']
  Configure options: ['--enable-unicode', '--with-gtk=3', '--enable-sound', '--enable-graphics_ctx', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--enable-autoidman', '--with-sdl']
  /tmp/pip-install-ykws_i7y/wxpython/ext/wxWidgets/configure --enable-unicode --with-gtk=3 --enable-sound --enable-graphics_ctx --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --enable-autoidman --with-sdl
  checking build system type... x86_64-pc-linux-gnu
  checking host system type... x86_64-pc-linux-gnu
  checking for toolkit... gtk
  checking for gcc... gcc
  checking whether the C compiler works... yes
  checking for C compiler default output file name... a.out
  checking for suffix of executables...
  checking whether we are cross compiling... no
  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 whether we are using the Intel C compiler... no
  checking how to run the C preprocessor... gcc -E
  checking for grep that handles long lines and -e... /usr/bin/grep
  checking for egrep... /usr/bin/grep -E
  checking whether gcc needs -traditional... no
  checking for g++... g++
  checking whether we are using the GNU C++ compiler... yes
  checking whether g++ accepts -g... yes
  checking whether we are using the Intel C++ compiler... no
  checking whether we are using the Sun C++ compiler... no
  checking for ar... ar
  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 for langinfo.h... yes
  checking for wchar.h... yes
  checking for sys/select.h... yes
  checking for cxxabi.h... yes
  checking for an ANSI C-conforming const... yes
  checking for inline... inline
  checking size of short... 2
  checking size of void *... 8
  checking size of int... 4
  checking size of long... 8
  checking size of size_t... 8
  checking size of long long... 8
  checking size of wchar_t... 4
  checking for va_copy... yes
  checking whether the compiler supports variadic macros... yes
  checking for _FILE_OFFSET_BITS value needed for large files... 64
  checking if large file support is available... yes
  checking for _LARGEFILE_SOURCE value needed for large files... no
  checking whether byte ordering is bigendian... no
  checking for std::wstring in <string>... yes
  checking for std::istream... yes
  checking for std::ostream... yes
  checking for type_traits... yes
  checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... yes
  checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
  checking for cos... no
  checking for floor... no
  checking if floating point functions link without -lm... no
  checking for sin... yes
  checking for ceil... yes
  checking if floating point functions link with -lm... yes
  checking for strtoull... yes
  checking for pkg-config... /usr/bin/pkg-config
  checking pkg-config is at least version 0.9.0... yes
  configure: WARNING: Defaulting to the builtin regex library for Unicode build.
  checking for zlib.h >= 1.1.4... yes
  checking for zlib.h... (cached) yes
  checking for deflate in -lz... yes
  checking for png.h > 0.90... yes
  checking for png.h... (cached) yes
  checking for png_sig_cmp in -lpng... yes
  checking for jpeglib.h... no
  configure: WARNING: system jpeg library not found, will use built-in instead
  checking lzma.h usability... no
  checking lzma.h presence... no
  checking for lzma.h... no
  checking for jbg_dec_init in -ljbig... no
  checking for LIBTIFF... not found via pkg-config
  checking for tiffio.h... no
  configure: WARNING: system tiff library not found, will use built-in instead
  checking for expat.h... yes
  checking if expat.h is valid C++ header... yes
  checking for XML_ParserCreate in -lexpat... yes
  checking for GTK+ version...
  checking for pkg-config... (cached) /usr/bin/pkg-config
  checking pkg-config is at least version 0.16... yes
  checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gtk+-3.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gtk+-3.0' found
  no
  *** Could not run GTK+ test program, checking why...
  *** The test program failed to compile or link. See the file config.log for the
  *** exact error that occurred. This usually means GTK+ is incorrectly installed.
  configure: error:
  The development files for GTK+ were not found. For GTK+ 2, please
  ensure that pkg-config is in the path and that gtk+-2.0.pc is
  installed. For GTK+ 1.2 please check that gtk-config is in the path,
  and that the version is 1.2.3 or above. Also check that the
  libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
  --libs' are in the LD_LIBRARY_PATH or equivalent.
  
  Error running configure
  ERROR: failed building wxWidgets
  Traceback (most recent call last):
    File "build.py", line 1471, in cmd_build_wx
      wxbuild.main(wxDir(), build_options)
    File "/tmp/pip-install-ykws_i7y/wxpython/buildtools/build_wxwidgets.py", line 373, in main
      "Error running configure")
    File "/tmp/pip-install-ykws_i7y/wxpython/buildtools/build_wxwidgets.py", line 85, in exitIfError
      raise builder.BuildError(msg)
  buildtools.builder.BuildError: Error running configure
  Finished command: build_wx (0m3.965s)
  Finished command: build (0m3.965s)
  Command '"/home/frank/miniconda3/envs/label/bin/python" -u build.py build' failed with exit code 1.
  ----------------------------------------
  ERROR: Failed building wheel for wxpython
  Running setup.py clean for wxpython
Failed to build wxpython
Installing collected packages: wxpython
    Running setup.py install for wxpython ... error
    ERROR: Command errored out with exit status 1:
     command: /home/frank/miniconda3/envs/label/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ykws_i7y/wxpython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ykws_i7y/wxpython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-a2fpjt6w/install-record.txt --single-version-externally-managed --compile --install-headers /home/frank/miniconda3/envs/label/include/python3.7m/wxpython
         cwd: /tmp/pip-install-ykws_i7y/wxpython/
    Complete output (138 lines):
    running install
    running build
    WARNING: Building this way assumes that all generated files have been
    generated already.  If that is not the case then use build.py directly
    to generate the source and perform the build stage.  You can use
    --skip-build with the bdist_* or install commands to avoid this
    message and the wxWidgets and Phoenix build steps in the future.
    
    "/home/frank/miniconda3/envs/label/bin/python" -u build.py build
    Will build using: "/home/frank/miniconda3/envs/label/bin/python"
    3.7.7 (default, May  7 2020, 21:25:33)
    [GCC 7.3.0]
    Python's architecture is 64bit
    cfg.VERSION: 4.1.0
    
    Running command: build
    Running command: build_wx
    wxWidgets build options: ['--wxpython', '--unicode', '--gtk3']
    Configure options: ['--enable-unicode', '--with-gtk=3', '--enable-sound', '--enable-graphics_ctx', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--enable-autoidman', '--with-sdl']
    /tmp/pip-install-ykws_i7y/wxpython/ext/wxWidgets/configure --enable-unicode --with-gtk=3 --enable-sound --enable-graphics_ctx --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --enable-autoidman --with-sdl
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking for toolkit... gtk
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    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 whether we are using the Intel C compiler... no
    checking how to run the C preprocessor... gcc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking whether gcc needs -traditional... no
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking whether we are using the Intel C++ compiler... no
    checking whether we are using the Sun C++ compiler... no
    checking for ar... ar
    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 for langinfo.h... yes
    checking for wchar.h... yes
    checking for sys/select.h... yes
    checking for cxxabi.h... yes
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking size of short... 2
    checking size of void *... 8
    checking size of int... 4
    checking size of long... 8
    checking size of size_t... 8
    checking size of long long... 8
    checking size of wchar_t... 4
    checking for va_copy... yes
    checking whether the compiler supports variadic macros... yes
    checking for _FILE_OFFSET_BITS value needed for large files... 64
    checking if large file support is available... yes
    checking for _LARGEFILE_SOURCE value needed for large files... no
    checking whether byte ordering is bigendian... no
    checking for std::wstring in <string>... yes
    checking for std::istream... yes
    checking for std::ostream... yes
    checking for type_traits... yes
    checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... yes
    checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
    checking for cos... no
    checking for floor... no
    checking if floating point functions link without -lm... no
    checking for sin... yes
    checking for ceil... yes
    checking if floating point functions link with -lm... yes
    checking for strtoull... yes
    checking for pkg-config... /usr/bin/pkg-config
    checking pkg-config is at least version 0.9.0... yes
    configure: WARNING: Defaulting to the builtin regex library for Unicode build.
    checking for zlib.h >= 1.1.4... yes
    checking for zlib.h... (cached) yes
    checking for deflate in -lz... yes
    checking for png.h > 0.90... yes
    checking for png.h... (cached) yes
    checking for png_sig_cmp in -lpng... yes
    checking for jpeglib.h... no
    configure: WARNING: system jpeg library not found, will use built-in instead
    checking lzma.h usability... no
    checking lzma.h presence... no
    checking for lzma.h... no
    checking for jbg_dec_init in -ljbig... no
    checking for LIBTIFF... not found via pkg-config
    checking for tiffio.h... no
    configure: WARNING: system tiff library not found, will use built-in instead
    checking for expat.h... yes
    checking if expat.h is valid C++ header... yes
    checking for XML_ParserCreate in -lexpat... yes
    checking for GTK+ version...
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking pkg-config is at least version 0.16... yes
    checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-3.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gtk+-3.0' found
    no
    *** Could not run GTK+ test program, checking why...
    *** The test program failed to compile or link. See the file config.log for the
    *** exact error that occurred. This usually means GTK+ is incorrectly installed.
    configure: error:
    The development files for GTK+ were not found. For GTK+ 2, please
    ensure that pkg-config is in the path and that gtk+-2.0.pc is
    installed. For GTK+ 1.2 please check that gtk-config is in the path,
    and that the version is 1.2.3 or above. Also check that the
    libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
    --libs' are in the LD_LIBRARY_PATH or equivalent.
    
    Error running configure
    ERROR: failed building wxWidgets
    Traceback (most recent call last):
      File "build.py", line 1471, in cmd_build_wx
        wxbuild.main(wxDir(), build_options)
      File "/tmp/pip-install-ykws_i7y/wxpython/buildtools/build_wxwidgets.py", line 373, in main
        "Error running configure")
      File "/tmp/pip-install-ykws_i7y/wxpython/buildtools/build_wxwidgets.py", line 85, in exitIfError
        raise builder.BuildError(msg)
    buildtools.builder.BuildError: Error running configure
    Finished command: build_wx (0m2.892s)
    Finished command: build (0m2.892s)
    Command '"/home/frank/miniconda3/envs/label/bin/python" -u build.py build' failed with exit code 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/frank/miniconda3/envs/label/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ykws_i7y/wxpython/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ykws_i7y/wxpython/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-a2fpjt6w/install-record.txt --single-version-externally-managed --compile --install-headers /home/frank/miniconda3/envs/label/include/python3.7m/wxpython Check the logs for full command output.

What should we do?Today’s sudden fantasy with CONDA, the result is OK, God is not magical

conda install wxpython

Note that python = = 3.7 in CONDA

[Solved] Ubuntu Install caffe error: build_release/tools/caffe: error while loading shared libraries: libcudart.so.8….

1. There are three solutions on the Internet:

1) this is GitHub’s solution. Link: https://github.com/tensorflow/tensorflow/issues/5343

It can be seen that this method is still effective

2) execution order:

1 sudo ldconfig /usr/local/cuda/lib64

This feeling is ok too

3) if the above two methods are still unsolved, try the following:

The main reason for this kind of problem is that libcudart. So. 8.0 can’t be found in/usr/local/lib/directory, which can be found in usr/local/cuda-8.0/lib64/directory. Therefore, we copy libcudart. So. 8.0 through the following command. Remember to add sudo permission, otherwise it may not be copied
execute command:

1 sudo cp /usr/local/cuda-8.0/lib64/libcudart.so.8.0 /usr/local/lib/libcudart.so.8.0 && sudo ldconfig

This is where there will also be.

./build/tools/caffe: error while loading shared libraries: libcublas.so.8.0: cannot open shared object file: can not open shared object file: No such file or directory
./build/tools/caffe: error while loading shared libraries: libcurand.so.8.0: cannot open shared object file: can not open shared object file: No such file or directory
./build/tools/caffe: error while loading shared libraries: libcudnn.so.6: cannot open shared object file: can not open shared object file: No such file or directory
The corresponding name marked in yellow in the command can be changed

Execution is complete and there are no more errors!!!