CMake find_package(...) not able to find wolfSSL - cmake-modules

I have installed a wolfSSL version 5.4.0 in my ubuntu(configured to /usr/local (default)). I am trying to find the wolfSSL package using below find_package arguments in my project's root CMakeLists file but nothing worked.
find_package(wolfssl REQUIRED) (or)
find_package(WolfSSL REQUIRED)
Am I missing something here? Can anyone please suggest?

Related

Installing mysql through terminal

I am having some issues getting sql to work when trying to set my rails project. I have the latest version of both ruby and rails, the issue I believe lies within my terminal PATH. When typing gem install mysql, I get the following error:
ERROR: While executing gem ... (Errno::EACCES) Permission denied #
rb_sysopen -
/Users/myName/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/mysql-2.9.1/COPYING.
And when echoing my PATH I get the following description:
/Users/myName/.rbenv/shims:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
This is a messed up path, and yes I have specified the PATH I want in the .bash_profile. My desired path looks like this:
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" It just doesn't seem to work. Any ideas of what I am doing wrong? Running Sierra on a Macbook Pro 2015.
Thanks in advance for the help!
That error doesn't look like anything to do with your $PATH, which looks OK. It seems that you're trying to write to /Users/myName/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/mysql-2.9.1/COPYING but don't have permission. Maybe you installed something as root, and now root owns the gem files.
My guess is you need to fix the ownership of your .rbenv directory.
Try sudo chown -R myName /Users/myName/.rbenv, or if you want to be more rigorous, ls -l /Users/myName/.rbenv and see what the permissions look like before fixing whichever need it.
Managed to solve the issue with the help of this thread: brew install mysql on mac os. And with using my brain a bit more and installing the lated command tools... Hope this can help someone else who may have forgotten Xcodes part in it all.

MonoDevelop ValaBinding install failed

I installed monodevelop in ubuntu 13.04 from git with the help of README.md, but I received an error
checking for LIBVALA... no
configure: error: Package requirements (libvala-0.12 >= 0.12) were not met:
No package 'libvala-0.12' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables LIBVALA_CFLAGS
and LIBVALA_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I have installed libvala-0.20-0 and libvala-0.20-dev by apt-get.
I have googled for this question and found some links,but helpless.
my mono was at version 3.6.1.
THX FOR HELP.
update 2014-06-19
I found the config.log file and see the error
configure:4075: checking for LIBVALA
configure:4084: $PKG_CONFIG --exists --print-errors "libvala-0.12 >= $LIBVALA_REQUIRED_VERSION"
Package libvala-0.12 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libvala-0.12.pc'
to the PKG_CONFIG_PATH environment variable
Although I have installed libvala-0.20-0 and libvala-0.20-dev, I doesn't own a libvala-0.**.pc file.
What can I do the next?
I have resolved thest problem by finding a libvala-0.12.pc file :)
While the Vala language, valac, and most of the bindings distributed with Vala are meant to be API stable, libvala is not. libvala-0.20 provides a very different API/ABI from libvala-0.12, and apparently MonoDevelop's Vala plugin hasn't been updated since Vala 0.12.
If you don't want the Vala plugin, I'm sure MonoDevelop provides a way to disable it (probably passing --disable-vala or something similar to ./configure). If you need the Vala plugin, though, you'll have to install libvala-0.12 or update the plugin to use a newer version of libvala.
now the problem is solved.
I used cn.archive.ubuntu.com/ubuntu for my apt-get.
These's no libvala-**.pc file in the package.
So whatever version I installed by apt-get, I can not get a libvala-*.pc file.
I searched in google for libvala-12.0.pc and changed my source to cz.archive.ubuntu.com/ubuntu, then I got that file.
Now I can run my monodevelop with valabinding.
Thx for #nemequ , I didn't use a higher libvala, so I don't know if it will be different when using a libvala-hight-than-12.0.pc file.
Hope these is usefull for others.
If you don't want to install vavabind after configure once ,just use ./configure --select, it's written in README. My bad :(

Building a C project on Ubuntu linux has error 'mysql/mysql.h no such file'

I know it's a stupid question but I'm new to Ubuntu. The C files in the project build ok but then I get the error
mysql/mysql.h no such file or directory.
I've tried installing mysql server using apt-get but I still get the same error.
is there something else I should install to see the mysql files ?
You need to install the libmysqlclient-dev package.
On Windows eclipse mingw32, the include path mysql/mysql.h is not working either. I have to use mysql.h without path but with Properties > C/C++ General > Path and Symbols > Includes adding the exact directory where mysql.h resides.
Its probably a problem of path delimiters on windows though I have tested both \ and /.

Error while installing Octave

I am trying to install Octave on OS X. When executing brew install octave I get the following error:
octave: A LaTeX distribution is required to install.
You can install MacTeX distribution from:
http://www.tug.org/mactex/
Make sure that "/usr/texbin", or the location you installed it to, is in
your PATH before proceeding.
I downloaded and installed MacTeX but it is still not working :(
How can I fix this?
If you want to avoid the MacTeX dependency you can install Octave with brew as follows:
brew install octave --without-docs
"Make sure that "/usr/texbin", or the location you installed it to, is in
your PATH before proceeding."
This message may be the hint of the answer for you.
You need to set the PATH so that the Tex could be called from anywhere in your system.
Adding the following line in the .bash_profile may fix it.
export PATH=$PATH:/usr/texbin/
The reason why the texlive command does not work have also same cause on this.

Mysql does not download properly because of rvm

I originally configured my computer with rails, ruby and rvm. Afterwards, I downloaded mysql, but when I typed in mysql --version, it tells me that it is not installed. My echo path shows
/Users/ming/.rvm/gems/ruby-1.9.2-p180#default/bin:/Users/ming/.rvm/gems/ruby-1.9.2-p180#global/bin:/Users/ming/.rvm/rubies/ruby-1.9.2-p180/bin:/Users/ming/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
I am not sure if it's because I have both .bash_profile (blank) and .profile (export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"). I know that if they both exist, the latter would be ignored and since my .bash_profile is blank, mysql was saved to la-la land. When I copied the export PATH to the .bash_profile, I get an error message that reads:
"[[ -s "/Users/ming/.rvm/scripts/rvm" ]] && source "/Users/ming/.rvm/scripts/rvm" # This loads RVM into a shell session."
I am using:
Snow Leopard
Rails 3
Ruby 1.9.2
RVM
While I love RVM, it's becoming a real hassle so far whenever I download something new.
I read a bunch of stuff about this and it hasn't been helpful. Please help.
Thank you!
I don't know how you installed MySQL (there are a dozen ways to do so)
from source
from binary dmg
from macports
from fink
from brew
My recommandations is to install MySQL through the 'brew' command.
Personally I use .bash_profile along with rvm/brew and so far no issues.
I can't see the MySQL path in your $PATH though and neither the error message.
Try adding this:
PATH="$PATH:/usr/local/mysql/bin"
to your favourite file.