i'm trying to lunch bjam as a step to install the boost library, needed to run Cufflinks (RNASeq analysis software).
however, when i run the code:
$ ./bjam --prefix=/cygdrive/c/cygdrive/c/Boost/include/boost-1_53/boost -- toolset=gcc architecture=x86 address_model=32 link=static runtime-link=static stage install
i get the following error
Access is denied.
Access is denied.
Access is denied.
Access is denied.
C:/Users/se24553/Downloads/boost_1_53_0/tools/build/v2/build\property.jam:328: in validate1 from module property
error: Invalid property '<address_model>32': unknown feature 'address_model'.
C:/Users/se24553/Downloads/boost_1_53_0/tools/build/v2/build\property.jam:337: in property.validate from module property
C:/Users/se24553/Downloads/boost_1_53_0/tools/build/v2/build\build-request.jam:216: in convert-command-line-element from module build-request
C:/Users/se24553/Downloads/boost_1_53_0/tools/build/v2/build\build-request.jam:154: in build-request.from-command-line from module build-request
C:/Users/se24553/Downloads/boost_1_53_0/tools/build/v2\build-system.jam:613: in load from module build-system
C:\Users\se24553\Downloads\boost_1_53_0\tools\build\v2/kernel\modules.jam:283: in import from module modules
C:\Users\se24553\Downloads\boost_1_53_0\tools\build\v2/kernel/bootstrap.jam:142: in boost-build from module
C:\Users\se24553\Downloads\boost_1_53_0\boost-build.jam:17: in module scope from module
and I don't really know how to overcome that.
the directory /cygdrive/c/cygdrive/c/Boost/ (and i tried to use only this path but the result is the same) is where i have installed the various files using the code b2 install --prefix=/cygdrive/c/cygdrive/c/Boost/, however, it contains two folders include and lib, lib is empty while include contains --> boost-1_53 --> boost and here there are all the other folders and the .hpp files.
i am using cygdrive on Win 7 if that helps!
thanks :)
I had the same problem:
In windows 7 your bin directory may be protected:
$ chmod -R a+r bin
$ chmod -R a+x bin
How to compile Boost (and link?) libraries in cygwin windows7 i686-w64-mingw32-g++ with bjam
Barthelemy
Related
I am trying to install omni compiler in order to compile XcalableMP programs on OSX. I can ./configure successfully as per the instructions but am receiving this error when I make:
../include/xmp_internal.h:19:10: fatal error: mpi.h: No such file or directory
My Open MPI is installed via homebrew and mpi.h is located through my Cellar folder. How do I go about including this header file?
can you try the following command to be sure the location of the installed openmpi is correct:
mpicc -showme
Then, are you sure the mpi path is in your path, try to set these environment variables and then try:
Note that I assume the openmpi is installed in "/home/openmpi" path for example:
export PATH=/home/opempi/bin:/home/opempi/include:$PATH
and for the runtime:
export LD_LIBRARY_PATH=/home/openmpi/lib:$LD_LIBRARY_PATH
Then try to configure and make again the omnicomppiler,
I'm trying to install ROOT (from cern) and I have a problem. This is the error that I have after make comand.
bin/rootcling: error while loading shared libraries: libtinfow.so.6: cannot open shared object file: No such file or directory
How can I resolve this? I looked for a libtinfow package but seems it doen't exist!
You need to install ncurses shared lib, and while configuring ncurses before building do:
./configure --prefix=/path/to/ncurses --with-termlib --with-shared --enable-widec
I have installed Boost 1.55 (+python33), boost-build and boost-jam through Macports on Mac OS X 10.9.
Following the HOWTO (http://www.boost.org/doc/libs/1_55_0b1/libs/python/doc/building.html), I
cd to /opt/local/share/doc/boost/libs/python/example/quickstart and typed in bjam toolset=gcc
--verbose-test test and just bjam and I got the following error message:
/opt/local/share/boost-build/build/project.jam:271: in find-jamfile from module project
error: Unable to load Jamfile.
error: Could not find a Jamfile in directory '../../../..'.
error: Attempted to find it with pattern '[Bb]uild.jam [Jj]amfile.v2 [Jj]amfile [Jj]amfile.jam'.
error: Please consult the documentation at 'http://www.boost.org'.
/opt/local/share/boost-build/build/project.jam:290: in load-jamfile from module project
/opt/local/share/boost-build/build/project.jam:68: in project.load from module project
/opt/local/share/boost-build/build/project.jam:718: in project.use from module project
/opt/local/share/boost-build/build/project.jam:95: in load-used-projects from module project
/opt/local/share/boost-build/build/project.jam:79: in load from module project
/opt/local/share/boost-build/build/project.jam:170: in project.find from module project
/opt/local/share/boost-build/build-system.jam:248: in load from module build-system
/opt/local/share/boost-build/kernel/modules.jam:261: in import from module modules
/opt/local/share/boost-build/kernel/bootstrap.jam:132: in boost-build from module
/opt/local/share/doc/boost/libs/python/example/quickstart/boost-build.jam:8: in module scope from module
Clearly the Macports put the files in some "non-default" locations. For example, the boost-build directory (specified in boost-build.jam) is in /opt/local/share/doc/boost/tools/build/v2. In the file Jamroot:
# Specify the path to the Boost project. If you move this project,
# adjust the path to refer to the Boost root directory.
use-project boost
: ../../../.. ;
Clearly the desired jamefile is not in ../../../.. on Macports installation.
My question is: where is the desired jamefile located in Macports installation of boost? What path should I specify in Jamroot?
Here is the command I typed:
clang++ -Iboost -Ijpeg_lib/include/ -Ljpeg_lib/lib/ -ljpeg.9 mandelbrot.cpp
The directory structure is like this:
mandelbrot.cpp
/boost
/jpeg_lib/lib/
libjpeg.9.dylib
/jpeg_lib/include/
The compilation is successful, but when I run the binary file, an error occurs:
dyld: Library not loaded: /usr/local/lib/libjpeg.9.dylib
Referenced from: /Users/hanxu/Documents/./a.out
Reason: image not found
Trace/BPT trap: 5
I have specified the library searching path to jpeg_lib/include/, why does the program still search at /usr/local/lib ?
You should include the directory where libjpeg.9.dylib lives in LD_LIBRARY_PATH, which is required to locate the libraries at runtime:
export LD_LIBRARY_PATH=/path/to/libjpeg
Have you checked permissions on your jpeg_lib ? If you installed whatever it is you are running as root and then ran as yourself this may have happened.
I just had the same error message with running GD graphics from a Perl cgi after a portmanteau install as root and found that the /usr/local/lib directory in which my libjpeg.9.dylib resides had permissions 700. Changing to 755 (like all the other directories in /usr/local) solved the problem.
I work off my i: drive
I've downloaded the following mono source file mono-2.11.2.tar.bz2
I've installed the windows version of mono v2.11.2 to "I:\Mono-2.11.2"
I installed cygwin as per the following instructions found on the following webpage http://shana.worldofcoding.com/en/mono_cygwin_tutorial.html
I replaced the "make.exe" with the one from the mono website as per instruction. I had to get one more file "cygintl-2.dll" which resides in cygwin package libintl2/libintl2-0.12.1-3
I added the following my .bashrc file. I had to change "c/Mono-2.11.2/bin" to "i/Mono-2.11.2/bin"
PATH=.:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/i/Mono-2.11.2/bin
PKG_CONFIG_PATH=.:/lib/pkgconfig:/cygdrive/i/Mono-2.11.2/lib/pkgconfig
LD_LIBRARY_PATH=.:/usr/local/lib:/usr/lib:/lib:/cygdrive/i/Mono-2.11.2/lib
export PATH PKG_CONFIG_PATH LD_LIBRARY_PATH
I placed my mono source under the folder specified: /usr/src/mono/
So my dirs looks like:
i:
i:\cygwin\
i:\cygwin\usr\src\mono
i:\cygwin\usr\src\mono\mono
i:\cygwin\usr\src\mono\mcs etc etc
i:\Mono-2.11.2\bin etc
Now the instructions says I must change dirs to /usr/src/mono/mono and run "./autogen.sh --prefix=/usr/local" from the cygwin terminal
However that doesnt work. Running the above command from /usr/src/mono/ works fine.
Now heres the problem. The next instruction is to run "make". However this comes up with :
$ make
make: *** No targets specified and no makefile found. Stop.
I even tried running it from the /usr/src/mono/mono dir. Still no luck.
Can someone please suggest what I should do to be able to build the mono source on windows 7?
Update:
I needed to install the **gnu c++ compiler (g++)**. I just ran the cygwin setup again, searched for g++ and installed that. The autogen.sh ran to completion
The last lines of ./autogen.sh --prefix=/usr/local output should
look like bellow with Now type make to compile at the end. And it
generats Makefile in the same directory.
I think in your case ./autogen.sh failed. You can keep a log file
and check what it is complaining about.
./autogen.sh --prefix=/usr/local 2>&1 | tee autogen.log
More info: http://en.wikipedia.org/wiki/GNU_build_system
The end of the ./autogen.sh ouptut:
config.status: executing quiet-libtool commands
config.status: executing default commands
mcs source: mcs
olive source:
Engine:
GC: sgen and bundled Boehm GC with typed GC and parallel mark
TLS: __thread
SIGALTSTACK: yes
Engine: Building and using the JIT
oprofile: no
BigArrays: no
DTrace: no
LLVM Back End: no (dynamically loaded: no)
Libraries:
Moon Profile: no (boehm)
MonoDroid: no
MonoTouch: no
Mobile: no
JNI support: IKVM Native
libgdiplus: assumed to be installed
zlib: system zlib
Now type `make' to compile