How to install libusb manually on macOS (without Homebrew) - libusb

I tried to download libusb-1.0.0.dylib and move it to /usr/local/lib/libusb-1.0.0.dylib but Python still raised usb.core.NoBackendError. So after copying libusb to /usr/local/lib/libusb-1.0.0.dylib, should I do something else? I know many of you will suggest installing it with Homebrew but I don't like Homebrew now. Thanks in advance

pain... :)
download libusb-1.0.26.tar.bz2 from https://formulae.brew.sh/api/formula/libusb.json aka "https://github.com/libusb/libusb/releases/download/v1.0.26/libusb-1.0.26.tar.bz2"
build with xCode to create the dynlib then archive / export the package. There is an Xcode project inside the package... or compile in your own way make/build...
copy the dynlib file to /opt/local/lib/libusb-1.0.dylib per hardcode in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/usb1/_libusb1.py ll 170 or choose 172 or 174... in method __getLibrary or symlink...
Xcode will spit out wrong file name so ensure you rename the file accordingly when you copy it. hope this helps.

Related

(MacOS Mojave 10.14.6) - Why 'lib' inside /usr/local is a Unix Executable file and not anymore a folder?

I have a very fresh and clean install of Mojave 10.14.6 on my 'Late 2013 MacBook Pro' (I haven't just updated from High Sierra 10.13), and I noticed that where there used to be the folder 'lib' inside path /usr/local now there is a Unix Executable file, also named 'lib', of about 7.6MB.
current situation in Mojave
Now, for a project requirement, I'd need to copy 3 dynamic libraries inside /usr/local/lib/ folder, but obviously I'm prevented from creating a folder with the same name of the Executable. I tried to look for a solution or any insight into this question, although it looks like no one really experienced this problem.
Does anyone know why there has been such change, or if this is only my odd problem?
Is there any workaround so that I can add *.dylib files to path: /usr/local/lib/ if I can't create a folder with that same name?
I would really appreciate any advice, thanks!

Processing 3 IDE is half cyrillic

Recently I started to find interest in Processing and decided to download the offical Processing 3 IDE from https://processing.org/download/?processing. But half of the IDE is in cyrillic symbols.
Screenshot of the IDE
I already tried to change the configuration language etc. Also I downloaded the IDE to my workplace notebook and on the notebook the IDE was complete in normal english.
Now I dont know how to fix this problem, because there are no informations about a problem like this with the Processing 3 IDE.
A few things to try - you may have already.
I know you said you tried changing the config language, but I'm not sure if you changed the "language.txt" file in the directory "C:\Users\your_username\AppData\Roaming\Processing". Ensure it only contains one line - "en".
Fresh install of Processing (delete the folder you extracted to and the Processing folder in the directory mentioned above, and the sketchbook folder, usually in your documents).
UPDATE:
This is a solution which has worked for others experiencing this exact issue:
Download Processing 3.1.1 - https://github.com/processing/processing/releases/tag/processing-0250-3.1.1
Make sure Processing is not already running
Rename the java folder in the processing-3.2.3 directory to something else, eg. java_broken
Copy the java folder from 3.1.1 to the 3.2.3 directory
Try running the 3.2.3 version of processing.exe

Right use of the .dll file?

I need to use the Corel Photo-Paint so I already installed it in my PC.
When I wanted to run the program I get the error:
This programme can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing . Try to reinstall this.
So, I download the .dll file and then I copied in the path:
C:\Windows\System32
Now I get this:
The entry point procedure ucrtbase.terminate not found in the dynamic link library api-ms-win-crt-runtime-l1-1-0.dll
How can I fix this problem and finally use the program?
*This is not about programming but I don't know how to use this forum correctly.
Do you have the ucrtbase.dll on your system?
if you don't, you can download it here:
http://www.opendll.com/index.php?file-download=ucrtbase.dll&arch=64bit&version=10.0.10137.0&dsc=Microsoft?-C-Runtime-Library
Then extract it in **c:\windows\SysWOW64** folder
Try again

sqlite3_analyzer not working in Ubuntu missing shared object file

I am learning more about sqlite3 and am trying to use the sqlite3_analyzer to view a bunch of data about my data. The problem is when I download the sqlite-analyzer-linux-x86-3071502.zip from https://www.sqlite.org/download.html and unzip this package and THEN try to run the program I receive THIS error: ./sqlite3_analyzer: error while loading shared libraries: libtcl8.6.so: cannot open shared object file: No such file or directory
Does anyone know where to get this libtcl8.6.so file? Does anyone know how to install this after obtaining it?
Install the package tcl8.6, or download the analyzer source code and recompile it with the Tcl version in your distribution.
I ended up downloading an older version of sqlite3_analyzer from a third party website (do a search for sqlite-analyzer-linux-x86) that worked without the dependency. I won't post links as I can't ensure that they'll be available and serve the same file as I downloaded.
If you decide to do that, be sure to check the file for viruses on http://virustotal.com! Can't trust these Chinese file hostings ;)

Unable to copy files from file system to IntelliJ IDEA 10.5

I have just started using IntelliJ IDEA.I am really novice to this IDE, so please bear if my question sounds silly.
I am facing a problem regarding copying of files from OS's File explorer to IntelliJ Project.
I am using following versions:
Operating System: Ubuntu v. 11.04
IntelliJ IDEA: v. 10.5.1
JDK: v. 1.6.0_27
For e.g. in the following image I have created a project having a Maven module.
I am unable to copy a schema file (.xsd) on my file system into the folder ..../src/main/conf/vehAvailRate.I tried out so many times but the file is not getting copied.Also I tried the Synchronize feature too but that too didn't helped.However when I open the project in file system and copy my desired schema file there ,IntelliJ IDEA relfects the change.
Am I doing something wrong or there is some other reason behind this behavior?
Thanks,
Jignesh
Such copy should be performed externally, using your favorite file manager. IDEA will refresh files under its project directory automatically.
If something goes wrong, check idea.log file in ~/.IntelliJIdea10/system/log directory.