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.
Related
I'm trying to install mercurial 3.6.3. I installed the binary package, but when I run hg on my terminal, it says
hg: command not found
I tried exporting the path
"export PATH="/usr/local/bin:$PATH"" >> ~/.bash_profile but then it says
/usr/local/bin/hg: No such file or directory
How do I install the binary package so that it gets installed in /usr/local/bin?
fyi, I also tried pip install mercurial#3.6.3, which is successfully installed in /Users/<whoami>/Library/Python/2.7/lib/python/site-packages, but not in /usr/local/bin.
I was trying to install thrift(0.11.0) over my system(macOs 10.14.5).For which I downloaded and extracted tar file. Then I ran following commands :
./bootstrap.sh
./configure
make
make install
But make install throwed the following error :
error: could not create '/usr/lib/python2.7/site-packages': Operation not permitted
then I also tried manually creating site-package inside /usr/lib/python2.7 but still the error message was same.
I have also tried sudo while running make install but it didn't helped much.
1.open thrift's subfolder lib/py/ and modify the Makefile as follow:
PY_PREFIX=/usr
change to
PY_PREFIX = /Users/amy/python
2.sudo make install
I faced the same problem trying to install thrift on Mac OS.
I found a separate guide for installing thrift on Mac OS, I tried it and it finally worked successfully:
1- Download the boost library from boost.org untar compile with
./bootstrap.sh
sudo ./b2 threading=multi address-model=64 variant=release stage install
2- Download libevent, untar and compile with
./configure --prefix=/usr/local
make
sudo make install
3- Download the latest version of Apache Thrift, untar and compile with
./configure --prefix=/usr/local/ --with-boost=/usr/local --with-libevent=/usr/local
Try it and let me know your results.
Reference: Apache Thrift - OS X 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
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.