spacemacs counsel-locate cannot find files in ~/Document - emacs24

when using counsel-locate SPC f L on mac, cannot find any file in ~/Documents or ~/Download.
I googled this, one answer on stackoverflow says I should install GNU locate, but how?

Related

Dot cannot be run in Pycharm with Sphinx and Graphviz

I am trying to create a class diagram with sphinx. For this I created a virtual environment in Pycharm and added this to conf.py:
extensions = ['sphinx.ext.autodoc','sphinx.ext.inheritance_diagram']
In my spamfilter.rst file I added the following lines:
Diagrams
=================
.. inheritance-diagram:: spamfilter
The output is not a diagram and looks like this.
The following warning is displayed:
WARNING: dot command 'dot' cannot be run (needed for graphviz output), check the graphviz_dot setting
When I look into the folder C:\Users\Name\PycharmProjects\documentation\venv\Lib\site-packages\graphviz, there is a dot.py file, so I do not understand what is wrong. A similar question for Mac OS has been asked here. I tried the solution but it seems like it only works for Mac, because when I paste export PATH=$PATH:~/opt/bin to the Pycharm Terminal, it tells me that the command export could not be found. Honestly I have problems understanding why sometimes you can just use packages and other times they cannot be found even when they are installed, I am self-taught and a beginner.
The "pip install graphviz" command installs a Python package that provides an interface to Graphviz (https://pypi.org/project/graphviz). This package is not required by Sphinx.
In order to create inheritance diagrams with Sphinx, the actual Graphviz toolkit (including dot.exe) must be installed. See https://www.graphviz.org.
If dot.exe is not in the PATH, you can use the graphviz_dot configuration option.
I had the same problem where rendering a C4 model with PlantUML didn't work in the IDE (PyCharm 2022.2.1 Pro) on a newer M1 MacOS Monterey. I had it working on a Big Sur intel Mac prior to the upgrade with no extra effort, so the chip change caused me to go down a lot of paths with Rosetta and so on that were all unsuccessful.
The error was:
Dot Executable: /opt/local/bin/dot
File does not exist
Cannot find Graphviz.
Graphviz was installed correctly, and dot was on my path, but it wasn't in /opt/local/bin/dot. Since it was in /opt/homebrew/bin/dot, all I needed to do was link the actual file with the path it was searching for:
cd /opt
sudo ln -s homebrew local
et voilĂ , PyCharm is now correctly rendering the puml in the IDE.

'openssl/rsa.h' file not found

I am using ccavenue as the payment gateway. I am getting "'openssl/rsa.h' file not found" this error while running the application.
Is there any way to add openssl via cocoapods or avoid this issue.
Thanks in advance.
If you have come across this sha.h not found error on a Mac/ios development, it is because Apple dropped support for openssl.(I faced this error in my macOs-mojave version)
refer to this link : https://www.anintegratedworld.com/mac-osx-fatal-error-opensslsha-h-file-not-found/
You can follow below mentioned steps as a work around for this issue.
brew install openssl
This will install a folder called openssl into your /usr/local/Cellar folder (where all your other brew downloads reside)
2.cd /usr/local/include
3.ln -s ../opt/openssl/include/openssl .
The trick though is to go into your usr/local/includes folder and create a symlink (aka folder shortcut in the windows world) to your Cellar folder. (Step 2)
ln is to create a link and -s means it is symbolic. Next we are saying what is the destination and the . (dot) indicates to create the link in the current directory. (Step 3)
Now when you compile the code, the warning should disappear because your compiler will search in this directory (one of many standard directories) and find the header file sha.h via the shortcut link.
You should probably run a few other commands as best practise:
brew doctor
brew update
brew upgrade
This will resolve issue.
Note : I faced this particular issue (openssl/rsa.h file not found) when i was trying to install 'RSclient' package in my R environment.

Brew cannot link postfix due to /usr/local/lib/libdns.a from bind in macos

I am working on a formula to brew install postfix from source code in the my mac mini. I am able to make the makefiles, make, and make install the software, however brew link can not be completed due to the libdns.a needed to be linked into /usr/local/lib. There is a link in the directory with the same name from bind already installed previously. So, I need to ask for help to resolve the conflict.
Is there any workaround to relocate the link to /usr/local/lib/postfix, /usr/lib, or somewhere else?
Can I ignore the very link and just complete the rest? What will fail?

Cocos2d-x v3 from github : Don't have glfw3.h

After I followed the steps on how to run cpp test on Mac OsX, there is an error when I run it in Xcode. It says that:
#include "glfw3.h <--- file not found
When I checked the folder, where I downloaded it from github, it seems that there is no glfw folder or even a file that was needed here.
So probably the files are missing. Please guide me on what could be done here to resolve this issue. Need guidance. I am using OS X version 10.9 and have Xcode 5.1.
Did you read the doc?
You need to run python download-deps.py

Open CV using Cmake

I am working on a harr detecttion project. I want to generate the exe files using the .cpp files that come with Opencv. I am using CMake for it. When I try to do that I am getting an error like this. Don`t know how to solve it.
CMake Error at CMakeLists.txt:7 (ocv_check_dependencies):
Unknown CMake command "ocv_check_dependencies".
Configuring incomplete, errors occurred!
Source link: C:/opencv/apps/haartraining
Destination link: D:/build
Please help me.
I was working on some image processing that involves Haar detection. And i was having a hard time trying to configure with Cmake at first but i finally found manual configuration tutorial with out using Cmake or else. It has helped me a lot and you can get it here. I hope it will work perfect as it worked for me too. Click here -> http://www.anlak.com/using-opencv-2-3-1-with-visual-studio-2010-tutorial/. The tutorial uses open CV 2.3.1 but it will work perfect for recent versions too with the need for Cmake ore else.If you more questions, hit me up and i will explain.Good luck!
It looks like You need to compile the whole library with build examples option enabled (if You are using windows then I bet You use graphic cmake interface, so it shouldn't be a problem), and then You will find the .exe in bin directory,
or You would need to include OpenCVModule.cmake file found in cmake catalogue to CMake file You are trying to use for the build.
I didn't test the second option myself, but it looks like CMake file You are trying to use does not load all macros needed for it to run, but macros are loaded when the root library CMake file is used.

Resources