How do I install SQLpp11 with PostgreSQL connector on Linux?
I use Linux Mint 17.2, Eclipse CDT and I have PostgreSQL 9.4 already installed.
I know, it's trivial but I'm doing this first time. I'm a newbie.
GitHub repository:
https://github.com/rbock/sqlpp11
https://github.com/matthijs/sqlpp11-connector-postgresql
Both repositories are using cmake, therefore you should be fine with
mkdir build
cd build
cmake .. # maybe some other options
make
make install
in each of the repos, starting with sqlpp11.
Related
I am trying to create a django application on a server running on Centos 7. When i tried to migrate the application, i got the error:"SQLite 3.8.3 or later required (found 3.7.17)."
Thereafter I installed the latest-version of Sqlite3. When i run sqlite3 --version, it showns 3.28.0 which is the latest version.
Howevere, when I tried my migrate the project I got the same error i.e "SQLite 3.8.3 or later required (found 3.7.17)." Can someone please suggest how to ensure that python/django is configured with the latest version of sqlite3 rather than the older one which came along with the OS?
Unfortunately CentOS only has v3.7.17 in their repos.
So you need to install v3.8.3 or the latest from source.
To do that, you can install from source (I'm not sure how to use the precompile binaries)
Download the source code from sqlite downloads
cd /opt
wget https://www.sqlite.org/2019/sqlite-autoconf-3280000.tar.gz
tar -xzf sqlite-autoconf-3280000.tar.gz
cd sqlite-autoconf-3280000
./configure
make
sudo make install
Following these instructions to install the DataStax C++ Driver on MacOS High Sierra, as a pre-requisite to installing the DataStax PHP Driver for Cassandra.
Everything runs great until I get to the line "make install" in the "Building and installing the C/C++ driver" section. That's where I get the message: "make: *** No rule to make target `install'. Stop."
Can someone help me get past this step?
** SOLVED ** a friend helped me stumble across the solution. Two things to remember when installing on MacOS High Sierra:
1.) You need to run the install of cpp-driver (which isn't a step in the DataStax instructions referenced in the question) and then
2.) You have to fully qualify the cmake .. command to point to the OpenSSL install.
Here are the amended instructions that worked for me:
# Datastax C++ driver dependencies
brew install libuv cmake
brew install openssl
brew link --force openssl
# Install git if you dont have it
brew install git
# Retrieve the cpp
git clone https://github.com/datastax/cpp-driver.git --depth=1
mkdir cpp-driver/build
cd cpp-driver/build
# Build with qualified path to OpenSSL location
cmake -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/ -DOPENSSL_LIBRARIES=/usr/local/opt/openssl/lib ..
make
make install
# Install pecl driver
pecl install cassandra
Once that's complete you should be good to go.
I have been trying to study the source code of clamav open source antivirus as a part of my project. Hence I downloaded the latest stable release clamav.0.99.2.tar.gz from the website.
I'm using eclipse neon.2 Release 4.6.2 on Windows 10 64-bit.
I created an existing make file project using the clamav folder extracted, and then converted it into an C/C++ autotools project.
While configuring the project, I get an error "openssl not found", Although I have installed openssl in my cygwin64 terminal and also I run the ecipse from this terminal only.
Is my approach completely wrong?
from the terminal in the linux VM, type:
sudo apt-get install libssl-dev
to install the SSL then from the clamav-0.99.2 directory type:
./configure
when that completes then type:
make
This will take a while to complete, then (if you want to actually install the clamav application) type:
make install
I install node.js since I heard that we should prefer apt-get installation to native installation from source since it is easy to update or remove. Is it true?
What's the right way to determine the correct gcc version to develop node.js C++ addon if we install node.js using apt-get?
I installed the node.js using apt-get (PPA: https://launchpad.net/~chris-lea/+archive/node.js/+packages) on Ubuntu 12.04. For the C++ development, the gcc(g++) version of node.js and add-on should match to make sure the C++ symbols consistent, right?
Thanks.
Use nvm to install from source:
nvm install [-s] <version>
and Node.js source code will be placed in '$NVM_DIR/src'.
Then use node-gyp to configure the environment and build your addon.
cd /path/to/your/node/addon/binding.gyp/file/
node-gyp configure
node-gyp build
It is practical, you don't need root permissions and will be compiled in the same environment.
I've written a C++ application aided by netbeans on ubuntu. In netbeans there is a build feature to build debian package. When I build the package using it I am not getting desired result. The files I am installing to linux filesystem using makefile are not being put into debian package.
in my makefile
install:
install config.xml /etc/${APPNAME}.conf.xml
install devices.rules /etc/udev/rules.d/${APPNAME}.rules
install error.log /var/log/${APPNAME}.log
install init.conf /etc/init/${APPNAME}.conf
install init.d /etc/init.d/${APPNAME}
chmod u+x ${CND_ARTIFACT_NAME_${CONF}}
./${CND_ARTIFACT_NAME_${CONF}} -i
but after building the package with netbeans, in the build .deb archive there is only usr/bin/${APPNAME} file. How to build debian package as expected.