How to rectify issues occurring while installing Cufflinks and Boost? - macos

I'm having a problem installing Cufflinks. Before installing Cufflinks, I installed Boost first with:
bjam --prefix=/Users/jimmy/Downloads/boost_1_46_1/ toolset=gcc link=static install
It seems to be ok.
However, when installing Cufflinks, it seems there is a problem in the installation of Boost. See error below:
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for boostlib >= 1.38.0... configure: error: We could not detect the boost libraries (version 1.38 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation.
dhcp128036164110:cufflinks-1.0.3 jimmy$ ./configure --prefix=/Users/jimmy/Downloads/ --with-boost=/Users/jimmy/Downloads/boost_1_46_1/
If I missed something, could you tell me what is wrong now? Thanks.
PS: I am using Mac OS X (not Windows)

Here is a complete procedure I used for installing Cufflinks from source on a Linux Redhat 64-bit system without root privileges.
Install Boost
1. Create a directory to install into
mkdir ~/bin/boost_1_55_0
2. Download Boost
wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz
3. Unpack Boost
tar xzvf boost_1_55_0.tar.gz
4. Change into boost directory
cd boost_1_55_0
5. Run bootstrap.sh script
./bootstrap.sh
6. Run b2 script
./b2
7. Run b2 script again to install
./b2 install –prefix=/lustre/home/jernest1/bin/boost_1_55_0
8. Add installation directory to several environment variables in ~/.bashrc
Add /lustre/home/jernest1/bin/boost_1_55_0/lib to LD_LIBRARY_PATH
Add /lustre/home/jernest1/boost_1_55_0 to a new variable BOOST_ROOT
Add /lustre/home/jernest1/boost_1_55_0 to a new variable CPLUS_INCLUDE_PATH
9. Source ~/.bashrc
source .bashrc
Install SAM tools
1. Download sam tools
wget http://sourceforge.net/projects/samtools/files/samtools/0.1.17/samtools-0.1.17.tar.bz2
2. Unpack
tar jxvf samtools-0.1.17.tar.bz2
3. Move into the samtools directory
cd samtools-0.1.17
4. Run make
make
5. Make new directories to put sam library files if they don’t already exist
mkdir –p ~/bin/lib
mkdir –p ~/bin/include/bam
6. Copy the libbam.a file to ~/bin/lib/
cp libbam.a ~/bin/lib/
7. Copy header files into ~/bin/include/bam/
cp *.h ~/bin/include/bam/
8. Copy the samtools executable program to a directory in your PATH
cp samtools ~/bin/
9. Add the bam directory to the new variable BAM_ROOT in ~/.bashrc
Install Eigen libraries
1. Download Eigen libraries
wget http://bitbucket.org/eigen/eigen/get/3.2.3.tar.gz
2. Unpack
tar xzvf 3.2.3.tar.gz
3. Move into Eigen directory
cd eigen-eigen-36fd1ba04c12
4. Copy the Eigen subdirectory into ~/bin/include/
cp -r eigen-eigen-36fd1ba04c12/Eigen/ ~/bin/include/
Install Cufflinks
Option 1: Install an official release
1. Make a directory to hold the installation.
mkdir cufflinks_2.2.1
2. Move into that directory
cd cufflinks_2.2.1
3. Download cufflinks
wget http://cole-trapnell-lab.github.io/cufflinks/assets/downloads/cufflinks-2.2.1.tar.gz
4. Unpack
tar xzvf cufflinks-2.2.1.tar.gz
cd cufflinks-2.2.1
5. Run configure script
./configure --prefix=/lustre/home/jernest1/cufflinks_2.2.1 --with-eigen=/lustre/home/jernest1/eigen-eigen-36fd1ba04c12/Eigen --with-bam=/lustre/home/jernest1/bin --with-boost=/lustre/home/jernest1/bin/boost_1_55_0
6. Run make
make
7. Run make install
make install
Optionally, copy ~/cufflinks_2.2.1/bin/cufflinks into ~/bin/
Option 2: install from Github project
1. Make directory to install into
mkdir cufflinks_2014-12-11
2. Move into that directory
cd cufflinks_2014-12-11
2. Download Github project
Click on the "HTTPS clone URL" button to save the URL location to your clipboard
Download
git clone https://github.com/cole-trapnell-lab/cufflinks.git
4. Run autogen.sh to convert configure.ac into configure
./autogen.sh
5. Run configure script
./configure --prefix=/lustre/home/jernest1/cufflinks_2014-12-11 --with-eigen=/lustre/home/jernest1/eigen-eigen-36fd1ba04c12/Eigen --with-bam=/lustre/home/jernest1/bin --with-boost=/lustre/home/jernest1/bin/boost_1_55_0
6. Run make
make
7. Run make install
make install
Optionally, copy ~/cufflinks_2014-12-11/bin/cufflinks into ~/bin/

Related

Can't install apertium language packages from source - make command shows errors

I am trying to install apertium-eng-ita package from source (available at https://github.com/apertium/apertium-eng-ita). The system is debian 11 (i tried also on fresh ubuntu, get the same error). So i downloaded all the files into my /root directory (/root/eng-ita contents all the files from provided link) and run:
./autogen.sh
This generated all the necessary files inside the "eng-ita" folder, including "Makefile". But then i run:
make
and see errors like:
apertium-validate-dictionary apertium-eng-ita.eng-ita.dix /bin/bash:
apertium-validate-dictionary: command not found make: ***
[Makefile:769: eng-ita.autobil.bin] Error 127
I began googling (for example, here is some info - https://wiki.apertium.org/wiki/Installation_troubleshooting) this 127 error and found some information about PATH, but where i can put this PATH to make it work?
If you're installing from source, you should first add the apt source and install apertium-all-dev which will give you make etc. Cf. https://wiki.apertium.org/wiki/Prerequisites_for_Debian you should
curl -sS https://apertium.projectjj.com/apt/install-nightly.sh | sudo bash
sudo apt-get -f install locales build-essential automake subversion git pkg-config \
gawk libtool apertium-all-dev
(But you don't need to install from source if you just want to use the pair and not develop for it. There are nightly debian packages of the latest git commit; after running the first command you can get that package with sudo apt install apertium-eng-ita)

macOS "./configure: No such file or directory" problem

When I try to install Sphinx with this guide
./configure --with-pgsql --with-mysql #from guide
make #from guide
sudo make install #from guide
./configure
-bash: ./configure: No such file or directory
$ autoreconf --install
autoreconf: 'configure.ac' or 'configure.in' is required
Are you running the ./configure command within the Sphinx source code folder? These instructions are for compiling Sphinx.
It's worth noting that the latest (v3.x) Sphinx releases aren't available as source code, only as pre-compiled binaries. So if that's what you've downloaded, you'll want to copy the files in ./bin - which would include indexer and searchd - into a location within your PATH (I would suggest /usr/local/bin).
Not excellent solution (because without mysql), but working (as all in programming world).
1) brew remove mysql
2) brew install mysql#5.7 (I don't know why, but it is working only with this version)
3) download sphinxsearch.com/files/sphinx-2.2.11-release.tar.gz and extract and cd to it
4) ./configure --with-pgsql --without-mysql and make and sudo make install
It is working for me, because I need postgresql first of all

Linphone compiling problems on osx

I'm trying to compile linphone on mountain lion. I have downloaded the sources and followed all the instructions in the README.macos file. The first time, when I got to '$ port install ige-mac-integration' an error occurred. It said gtk2 had to be installed with x11, however, the instructions said to install it with quartz and no_x11. I tried installing gtk2 again, this time with x11, but when I get to the compiling process it tells me quartz is needed. I can't install both, because the gtk2 installation will complain about it, and it seems I need both to complete the entire process of installing and compiling linphone.
I have tried these steps with the downloadable sources, as well as the git sources, both gave me the same problems. Linphone does not have a forum, so I couldn't ask it on their site.
I just need to get the sources and start using them, so any recommendations on how to open the linphone source, edit it, and compile/run it would be very welcome. The ideal situation would be where I can just open an xcode project file.
This is the readme file:
**********************************
* Compiling linphone on macos X *
**********************************
You need:
- Xcode (download from apple or using appstore application)
- Macports: http://www.macports.org/
Download and install macports using its user friendly installer.
- Install build time dependencies
$ port install automake autoconf libtool intltool
- Install some linphone dependencies with macports
$ port install speex
$ port install libosip2 # WARNING: currently outdated in macport
$ port install libeXosip2 #WARNING: currently outdated in macport
$ port install ffmpeg-devel
$ port install libvpx
- Install srtp (optional) for call encryption
$ port install srtp
If that fails, get from source:
$ git clone git://git.linphone.org/srtp.git
$ cd srtp && autoconf && ./configure --prefix=/opt/local && make libsrtp.a
$ sudo make install
- Install zrtpcpp (optional), for unbreakable call encryption
$ port install cmake
$ git clone git://git.linphone.org/zrtpcpp.git
$ cd zrtpcpp && cmake -Denable_ccrtp=false . && make
$ sudo make install
- Install gtk. It is recommended to use the quartz backend for better integration.
$ port install gtk2 +quartz +no_x11
$ port install hicolor-icon-theme
- Compile and install the tunnelsu
If you got the source code from git, run ./autogen.sh first
Then or otherwise, do:
$ ./configure --prefix=/opt/local && make && sudo make install
- Compile linphone
If you got the source code from git, run ./autogen.sh first.
Then or otherwise, do:
$ ./configure --prefix=/opt/local --with-readline=/opt/local --disable-strict --disable-x11 --with-srtp=/opt/local --with-gsm=/opt/local --enable-zrtp && make
Install to /opt/local
$ sudo make install
Done.
If you want to generate a portable bundle, then install gtk-mac-bundler.
Use git:
$ git clone https://github.com/jralls/gtk-mac-bundler.git
$ cd gtk-mac-bundler && make install
$ export PATH=$PATH:~/.local/bin
#make this dummy charset.alias file for the bundler to be happy:
$ sudo touch touch /opt/local/lib/charset.alias
Then run, inside linphone source tree:
1. Run configure as told before but with "--enable-relativeprefix" appended.
$ make
$ make bundle
The resulting bundle is located in linphone build directory, together with a zipped version.
For a better appearance, you can install the gtk-quartz-engine (a gtk theme) that make gtk application more similar to other mac applications (but not perfect).
$ git clone https://github.com/jralls/gtk-quartz-engine.git
$ cd gtk-quartz-engine
$ autoreconf -i
$ ./configure --prefix=/opt/local && make
$ sudo make install
Generate a new bundle to have it included.
Below is the details to configure the dependencies and build linphone.
==============================================================
Step: 1:- Dependency configuration:
I just followed the instruction which is available in "README.macos" upto sqlite3 configuration. I had some problem with dependancies configuration.
Because of macport version, srtp configuration is failed. So I have downloaded "MacPorts-2.1.3-10.8-MountainLion.pkg" and installed manually.
Because of GTK version, libsoup is failed. So I have downloaded "GTK_2.18.5-X11.pkg" and installed manually.
After the manual installation, I have followed "README.macos" again for reconfiguration.
NOTE: Sometime terminal won't recognize "wget".
--> Solution: just execute below command.
echo 'alias wget="curl -O"' >> ~/.bash_profile
Step: 2:- Compile and Install:
I got some problem related to intltool while compiling.
Solution: just I set the path by executing below commands
export PATH=$PATH:/opt/local/bin
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info
Now it is successfully compiled and installed.
Step: 3:- Creating bundle to run the app:
Just I followed below commands to make the build.
If you want to generate a portable bundle, then install gtk-mac-bundler.
Use git:
$ git clone https://github.com/jralls/gtk-mac-bundler.git
$ cd gtk-mac-bundler && make install
$ export PATH=$PATH:~/.local/bin
#make this dummy charset.alias file for the bundler to be happy:
$ sudo touch touch /opt/local/lib/charset.alias
Then run, inside linphone source tree:
1. Run configure as told before but with "--enable-relativeprefix" appended.
$ make
$ make bundle
It will create "linphone.app" file in current linphone directory. It will support only for "Mountain Lion".
Step: 4:- Support for lower version: (e.g.: Lion, Snow Leopard...)
We have to configure "libiconv hack" to supporting for lower version
I think it will help you.
I wrote an answer here. It's a bit long but I sincerely hope it is clear enough and will help you.
It contains the build settings and other libs you need to include.
Cool stuff I didn't need to run the make :)
Best,

Installation of doxygen and error in make command

I am trying to install doxygen in my CentOs 6.3 machine and I am getting this error. Any ideas??
[root#dell1 doxygen-1.8.3.1]# make install
/usr/bin/install -d /usr/local/bin
/usr/bin/install -d /usr/local/doc/doxygen
/usr/bin/install -m 755 bin/doxygen /usr/local/bin
/usr/bin/install -m 755 bin/doxytag /usr/local/bin
/usr/bin/install: cannot stat `bin/doxytag': No such file or directory
make: *** [install] Error 1
Bash isn't wrong in complaining:
/usr/bin/install: cannot stat `bin/doxytag': No such file or directory
It happens to be that the compiled file doxytag was not included in the downloaded tar file. So when you try to make, it couldn't find that file. To make it successfully, you have two options:
Compile the doxytag.py file from here and paste it to doxygen's bin directory
You can compile the python file doxytag.py from the above link using:
python -m compileall path_to_the_file/doxytag.py
It should generate a python compiled executable with .pyc extension. Now move this file to your doxygen-version folder. For example,
mv doxytag.pyc your_path/doxygen-1.8.5/bin/doxytag
Or alternatively download the doxytag from here
Now when you try to make, it will complete without any errors.
Comment out the line that requires doxytag file from the Makefile
You may read about the doxytag utility from https://www.star.bnl.gov/public/comp/sofi/doxygen/doxytag_usage.html.
If you do not really require this utility in your documentation, simply skip it by commenting out or deleting the line in the Makefile present in the doxygen-1.8.5(as per your version) directory by:
#$(INSTTOOL) -m 755 bin/doxytag $(INSTALL)/bin
And then run the make command.
The doxygen make is strange: "make install" will not invoke "make", so you need to do a
make
make install
to first generate the binaries and then install them.
A cannot stat error literally means the file(s) or directory does not exist - or you do not have the correct permissions. If you know where the directory is located - start looking there for permissions and file existence.
Try as a superuser.
sudo make install
First, you'll need to install some dependencies.
sudo apt install cmake
sudo apt install flex
sudo apt install bison
After that, execute the commands below; it'll probably work fine.
git clone https://github.com/doxygen/doxygen.git
cd doxygen
mkdir build
cd build
cmake -G "Unix Makefiles" ..
make
sudo make install

how to install gdcm from sources in linux?

I can't find how to install gdcm, from sources, in Xubuntu. I've downloaded tha latest snapshot from gdcm, version 2.2.0.
http://sourceforge.net/projects/gdcm/files/gdcm%202.x/GDCM%202.2.0/
It contains four folders:
bin
include
lib
share
Following official instructions here
http://sourceforge.net/apps/mediawiki/gdcm/index.php?title=Compilation#GNU.2FLinux
It says I should do this:
$ sudo apt-get install cmake g++
$ mkdir gdcm-build
$ cmake ../gdcm
$ make
But with the cmake command I get:
CMake Error: The source directory "" does not appear to
contain CMakeLists.txt.
I don't know what to do.
Thanks in advance.

Resources