Caffe installation: common.h: No such file or directory Error:1 - caffe

While doing make all for caffe configuration, compilation terminates and gives commom.h: No such file or directory and also Error:1
I have tried to install libprotobuf-dev but it gives error no matching version.enter image description here

Related

Fedora Arm pkg-config file not found error (armv7hl... should be armv7hnl...)

I'm trying to compile a cmake project on a RasberryPi with Fedora Arm 36 and in cmake I use pkg-config. It is correctly installed but I get this error:
/usr/bin/pkg-config: line 8: /usr/bin/armv7hnl-redhat-linux-gnueabi-pkg-config: No such file or directory
In the /usr/bin directory there is a file called armv7hl-redhat-linux-gnueabi-pkg-config (missing n in armv7hnl) is this a bug?
What can I do?
Edit
I've reinstalled pkg-config but still the same error.
/usr/bin/pkg-config is just a bash script that calls the appropriate executable and so I hard coded the one previously mentioned, I don't get an error but pkg-config can't find gtkmm-4.0 which is installed.

Puppeteer error: "failed to launch the browser process"

I am trying to run Puppeteer on my new laptop. However, I am getting this error:
node:8144) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
/mnt/c/Users/juliu/repos/kmj-sniper/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory
What am I missing here?
The error message can either indicate that your operating system is missing the ATK library (libatk), or that this shared library is installed in a location that Puppeteer does not know about, because it is not available from the paths specified in the environment variable LD_LIBRARY_PATH, or has a different name from what is expected.
If the ATK library is missing, what platform your laptop is running will likely determine the answer. If you are running Ubuntu, for example, you could do the following, or similar:
$ sudo apt-get install libatk-bridge2.0-0
On CentOS/RHL, perhaps:
$ sudo yum install atk.x86_64
If the required package is already installed, however, check that LD_LIBRARY_PATH includes the directory where the shared library is installed, and that the filename matches that shown in the error message returned by Puppeteer.
Delete folder node_modules (don't delete the package.json and package-lock.json files) and then run npm i.
It will essentially reinstall all your dependencies.
If that doesn’t work, then try Alex's answer.

"Couldn't resolve hostname" while installing package in Octave

I have tried installing a package in Octave using this command:
pkg install signal-1.4.0.taz.gz
but I received the following error:
error: pkg: failed to read package 'signal-1.4.0.taz.gz': Couldn't resolve host name
error: called from
pkg at line 429 column 17
Does somebody know what that means?
You have mis-spelled the name of the package's tarball. It is likely signal-1.4.0.tar.gz rather than signal-1.4.0.taz.gz (Note that one has TAR and the other has TAZ in the extension)
pkg install signal-1.4.0.tar.gz
Essentially what is happening, is that Octave is unable to find the file signal-1.4.0.taz.gz on the file system (due to the mis-spelling) so then it attempts to download the file from the internet. When it tries to resolve signal-1.4.0.taz.gz as a URL, DNS name resolution fails giving you the error that you're encountering.
I just had the same issue/error when trying to install the econometrics package on a windows install. In my case, for reasons unknown I was getting the following error:
>> pkg install econometrics-1.1.1.tar.gz
error: pkg: failed to read package 'econometrics-1.1.1.tar.gz': Couldn't resolve host name
error: called from
pkg at line 433 column 17
The only way I managed to get it, was by first downloading the package manually into the current working directory of Octave. (See pwd output.) Only then did the install command work.
pkg install econometrics-1.1.1.tar.gz
pkg load econometrics
I recently have this problem, you need to place the file in the Octave directory and from there rigth clik on the file to copy to clipboard and then paste from there.
example:
to me work to change the document to disc D, and then install like:
pkg install symbolic-win-py-bundle-2.9.0.tar.gz

Binary file refuses to run due to a missing shared library

I tried building recutils version 1.7 downloaded from the home page, using the standard configure, make, sudo make install sequence, but when trying to run the resulting binaries. like recinf, I get the error:
recinf: error while loading shared libraries: librec.so.1: cannot open shared object file: No such file or directory
Does this mean I made a mistake during the build or is the package itself in error?
As Etan Reisner said the problem was that the shared object libraries were installed but not loaded into the cache, hence the need to run ldconfig. After running
sudo ldconfig
the binaries ran properly. If I had looked in /usr/local/lib, I would have seen the libs there.

How to install RMySQL package for Windows?

Since binary file of RMySQL package is not available, I am not able to install it on Windows.
I looked up internet. I found this link. http://www.ahschulz.de/2013/07/23/installing-rmysql-under-windows/comment-page-1/#comment-3123
I followed the instructions, but I am getting an ERROR.
This is the final output I get after
>install.packages('RMySQL',type='source')
Installing package into ‘C:/Users/admin/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
also installing the dependency ‘DBI’
trying URL 'http://cran.rstudio.com/src/contrib/DBI_0.2-7.tar.gz'
Content type 'application/x-gzip' length 194699 bytes (190 Kb)
opened URL
downloaded 190 Kb
trying URL 'http://cran.rstudio.com/src/contrib/RMySQL_0.9-3.tar.gz'
Content type 'application/x-gzip' length 165363 bytes (161 Kb)
opened URL
downloaded 161 Kb
installing source package 'DBI' ...
package 'DBI' successfully unpacked and MD5 sums checked
R
inst
preparing package for lazy loading
Creating a generic function for 'summary' from package 'base' in package 'DBI'
help
installing help indices
building package indices
installing vignettes
testing if installed package can be loaded
arch - i386
arch - x64
DONE (DBI)
installing source package 'RMySQL' ...
** package 'RMySQL' successfully unpacked and MD5 sums checked
checking for $MYSQL_HOME... C:\Program Files\MySQL\MySQL Server 5.6\
cygwin warning:
MS-DOS style path detected: C:\Program
Preferred POSIX equivalent is: /cygdrive/c/Program
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
test: Files\MySQL\MySQL: unknown operand
** libs
Warning: this package has a non-empty 'configure.win' file,
so building only the main architecture
cygwin warning:
MS-DOS style path detected: C:/PROGRA~1/R/R-30~1.1/etc/x64/Makeconf
Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-30~1.1/etc/x64/Makeconf
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
gcc -m64 -I"C:/PROGRA~1/R/R-30~1.1/include" -DNDEBUG -I"C:\Program Files\MySQL\MySQL Server 5.6\"/include -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -std=gnu99 -mtune=core2 -c RS-DBI.c -o RS-DBI.o
**Syntax error: Unterminated quoted string
make: [RS-DBI.o] Error 2
ERROR: compilation failed for package 'RMySQL'***
removing 'C:/Users/admin/Documents/R/win-library/3.0/RMySQL'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-30~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\admin\Documents\R\win-library\3.0" C:\Users\admin\AppData\Local\Temp\RtmpMvp14B/downloaded_packages/RMySQL_0.9-3.tar.gz' had status 1
Warning in install.packages :
installation of package ‘RMySQL’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\admin\AppData\Local\Temp\RtmpMvp14B\downloaded_packages’
I have written the error i am getting in bold. Please help me resolve it.
Thanks a lot.
Go to System->Advanced->Enviroment Variables, press New and Enter
Variable name as MYSQL_HOME and Variable values as C:/Program
Files/MySQL/MySQL Server 5.6/, and notice that it is "/" not "\"
Copy C:/Program Files/MySQL/MySQL Server 5.6/lib/libmysql.dll to
C:/Program Files/MySQL/MySQL Server 5.6/bin and create C:/Program
Files/MySQL/MySQL Server 5.6/lib/opt folder and copy C:/Program
Files/MySQL/MySQL Server 5.6/lib/libmysql.lib to the opt folder
Run install.packages('RMySQL',type='source')
In some instances you might need to restart your PC.
Please following the instruction here: http://biostat.mc.vanderbilt.edu/wiki/Main/RMySQL
I believe you missed the step 3
3. Edit or create the file Renviron.site and add the variable MYSQL_HOME which contains the location of your MySQL install. The
file typically isn't created when installing R, so you may need to
create it yourself. You will want to place it under the /etc directory
in your R Home area. If you don't know where that is, you can issue
R.home() at your R prompt. You will be adding a variable named
MYSQL_HOME in variable=value syntax.
Here's an example:
Location of Renviron.site: C:/PROGRA~1/R/R-2.11~1.0/etc/Renviron.site
Content is: MYSQL_HOME=C:/PROGRA~1/MySQL/MYSQLS~1.0/
I had this same issue as well. It took me a while to understand:
that I needed to manually create a text file named Renviron.site in the proper Windows directory, and,
that the manually created Renviron.site file needed to contain the definition of the MYSQL_HOME variable.
Here is my example from Windows 10 and R version 3.2.2:
I issued the command R.home() at the R prompt in R Studio:
R.home()
[1] "C:/PROGRA~1/R/R-32~1.2"
With that information, I navigated to the etc folder in Windows:
C:\Program Files\R\R-3.2.2\etc
I placed a manually created text file called Renviron.site within this directory (the "etc" folder). The only data in the Renviron.site text file is the following:
MYSQL_HOME=C:/PROGRA~1/MySQL/MYSQLS~1.2/
(I wasn't sure whether to use ~1.0 or ~1.2 here based on the output from the R.home() command in R, but, this seemed to work)
Once the file was saved, I restarted R and I was able to install the RMySQL package in R.