I am trying to install OpenBLAS.I have created directory
mkdir -p /usr/local/OpenBLAS
Then I follow the tutorial instructions:
make PREFIX=$HOME/usr/local/OpenBLAS install
make -j 2 -f Makefile.install install
make[1]: Entering directory `/home/milenko/OpenBLAS'
Generating openblas_config.h in /root/usr/local/OpenBLAS/include
Generating f77blas.h in /root/usr/local/OpenBLAS/include
Generating cblas.h in /root/usr/local/OpenBLAS/include
Copying LAPACKE header files to /root/usr/local/OpenBLAS/include
Copying the static library to /root/usr/local/OpenBLAS/lib
Copying the shared library to /root/usr/local/OpenBLAS/lib
Generating OpenBLASConfig.cmake in /root/usr/local/OpenBLAS/lib/cmake/openblas
Install OK!
make[1]: Leaving directory `/home/milenko/OpenBLAS'
But usr/local/openBLAS is empty!
The new directory is created in /home/m/OpenBLAS/usr/local/.
Should I only export path to bashrc?Other programs will call OpenBLAS in future,this can cause troubles or not?
Related
I am trying to learn Sphinx documentation creating tool. I am able to generate html documentation. Now, in order to create an off-line version of the (html) documentation, I have been trying to generate pdf file from my project.
Towards that goal, so far I have tried the following (using resources available on the web including the Sphinx docs):
Added the following to conf.py:
# conf.py options for Latex
latex_engine = 'pdflatex'
latex_elements = {
'papersize': 'a4paper',
'pointsize': '10pt',
}
Subsequently used the command make latexpdf in the terminal, whereupon I got the following messages in the terminal:
/Users/.../.../.../.../.../urls.py:docstring of lead.urls:5: WARNING: Definition list ends without a blank line; unexpected unindent.
/Users/.../urls.py:docstring of lead.urls:7: WARNING: Unexpected indentation.
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
processing lead.tex... index modules/...
resolving references...
done
writing... done
copying TeX support files... copying TeX support files...
done
build succeeded, () warnings.
The LaTeX files are in _build/latex.
Run 'make' in that directory to run these through (pdf)latex
(use `make latexpdf' here to do that automatically).
latexmk -pdf -dvi- -ps- 'lead.tex'
make[1]: latexmk: No such file or directory
make[1]: *** [lead.pdf] Error 1
make: *** [latexpdf] Error 2
A new folder latex was created with a number of files in them including one with the name <project_name>.tex (lead.tex in the error log above) and one batch file make.bat among them.
However, running the command make only produces the following error:
latexmk -pdf -dvi- -ps- 'lead.tex'
make: latexmk: No such file or directory
make: *** [lead.pdf] Error 1
Following some leads (materials available on the web) on latexmk, tried to install BasicTex package from the Tex site.
However, the package available is only for macOs 10.13 and higher. I am on 10.12.6.
So I am stuck. Can somebody please let me know if there is any solution to my predicament?
https://www.tug.org/mactex/faq/3-4.html worked for me while on macOS 10.12.6.
I want to install SystemC 2.3.2 on ubuntu 16.04 So i followd the install file directives:
2. Create a temporary directory, e.g.,
> mkdir objdir
3. Change to the temporary directory, e.g.,
> cd objdir
4. Choose your compiler by setting the CXX environment variable
> export CXX=g++
5. Configure the package for your system, e.g.,
(The configure script is explained below.)
> ../configure
In case you want to install the package in another place than the
top level directory (systemc-2.3.2), configure the package e.g. as
follows:
> ../configure --prefix=/usr/local/systemc-2.3.2
6. Compile the package.
> make
7. At this point you may wish to verify the compiled package by
testing the example suite.
> make check
8. Install the package.
> make install
9. You can now remove the temporary directory, .e.g,
> cd ..
> rm -rf objdir
every step went good until i reached step 8 to install the package ... i get the following error:
user#user-Lenovo-IdeaPad-Y510P:~/systemc-2.3.2/objdir$ make install
Making install in docs
make[1]: Entering directory '/home/anoir/systemc-2.3.2/objdir/docs'
make[2]: Entering directory '/home/anoir/systemc-2.3.2/objdir/docs'
make[2]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/usr/local/systemc-2.3.2/docs'
/bin/mkdir: cannot create directory ‘/usr/local/systemc-2.3.2’: Permission denied
Makefile:380: recipe for target 'install-nobase_docDATA' failed
make[2]: *** [install-nobase_docDATA] Error 1
make[2]: Leaving directory '/home/anoir/systemc-2.3.2/objdir/docs'
Makefile:453: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/anoir/systemc-2.3.2/objdir/docs'
Makefile:505: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
I don't understand the problem. What could be my mistake
Default install location need root access. If you don't have it. Try to install it to other location which you have right to access.
For example:
../configure --prefix ${HOME}/SystemC
I have access to a server (but don't have root permissions on there). To cut a long story short the admin won't upgrade to the newer version of gcc that I need, but has suggested that I can just install it locally.
I'm having some issues doing this, despite trying to follow the guide at http://gcc.gnu.org/install/index.html. I want to use the new versions of GMP, MPFR, and MPC that are installed now on the server.
I first go into my home dir on the server then mkdir mygcc which I then cd into (this is to be the build dir and is not a sub-dir of src dir), from there I do
/home/username/gcc-4.6.3/configure --with-gmp="/software/gmp-5.0.5" --with-
gmp-include="/software/gmp-5.0.5/include" --with-gmp-lib="/software/gmp-5.0.5/lib"
--with-mpfr="/software/mpfr-3.1.1" --with-mpfr-include="/software/mpfr-3.1.1/include"
--with-mpfr-lib="/software/mpfr-3.1.1/lib" --with-mpc-include="/home/username/usr/local
/include" --with-mpc-lib="/home/username/usr/local/lib" --prefix="/home/username/mygcc"
--with-local-prefix="/home/username/usr/local"
the src files that I unzipped are at /home/pmxlh1/gcc-4.6.3.
I also made the directories /home/username/usr/include, /home/username/usr/local etc and set the prefix flags to try and install various things there, but it also fails if I just leave those flags out for the same reasons.
When I get to make however it ends with
checking for suffix of object files... configure: error: in `/home/pmxlh1/mygcc/x86_64-
unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/home/pmxlh1/mygcc'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/pmxlh1/mygcc'
make: *** [all] Error 2
Not sure if I'm going about this the correct way? But basically I want to install it in my home/dir and so that it uses the correct GMP/MPFR/MPC not the old versions that maybe lurking elsewhere on the server.
thanks for any help
I am trying to build LAPACK (the full version) with ATLAS on Redhat 4.1. I have been successful in building ATLAS depending upon the tarfile of lapack:
atlas/configure --prefix=HOME/atlas --with-netlib-lapack-tarfile=HOME/lapack-3.4.1.tgz
make build
make check
make install
But I need the whole installation of LAPACK. I found
http://math-atlas.sourceforge.net/atlas_install/atlas_install.html
and
http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CGcQFjAA&url=http%3A%2F%2Fciteseerx.ist.psu.edu%2Fviewdoc%2Fdownload%3Fdoi%3D10.1.1.136.5309%26rep%3Drep1%26type%3Dpdf&ei=3C8YUKaqOIqm8AT6kYC4Cg&usg=AFQjCNHKbHg1H0qupmzQbj9tGq3tsmXRDQ&sig2=etIB36nxjasjUg4sEwQ0DQ
which suggest changing a few lines of the default make.inc.example to build the rest of LAPACK. However, I am unsuccessful in getting even the default build of LAPACK to work:
cp make.inc.example make.inc
compute-1-29.local make
( cd INSTALL; make; ./testlsame; ./testslamch; ./testdlamch; \
./testsecond; ./testdsecnd; ./testieee; ./testversion )
make[1]: Entering directory `/home/jmorgens/lap/lapack/INSTALL'
gfortran -O0 -c slamch.f -o slamch.o
/share/apps/gcc-trunk/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.0/f951: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
make[1]: *** [slamch.o] Error 1
make[1]: Leaving directory `/home/jmorgens/lap/lapack/INSTALL'
ASCII character set
Tests completed
/bin/sh: ./testslamch: No such file or directory
/bin/sh: ./testdlamch: No such file or directory
/bin/sh: ./testsecond: No such file or directory
/bin/sh: ./testdsecnd: No such file or directory
/bin/sh: ./testieee: No such file or directory
/bin/sh: ./testversion: No such file or directory
make: *** [lapack_install] Error 127
Suggestions?
I'm experiencing difficulties with Qt3D. I can't manage to compile it from source code. If possible, I would like to compile Qt3D without compiling Qt itself. Can it link against an already compiled Qt ?
OS: Linux Ubuntu 11.10 (oneiric) x86_64
Qt version: 4.7.4
make output:
cp: cannot create regular file /usr/include/qt4/Qt3D/qt3dglobal.h': No such file or directory
make[2]: *** [/usr/include/qt4/Qt3D/qt3dglobal.h] Error 1
make[1]: *** [sub-threed-make_default-ordered] Error 2
make: *** [sub-src-make_default-ordered] Error 2
global/qt3dglobal.h /usr/include/qt4/Qt3D/qt3dglobal.h
make[2]: Leaving directory/home/soroush/programs/programming/libraries/qt3d-1.0-src/src/threed'
make[1]: Leaving directory `/home/soroush/programs/programming/libraries/qt3d-1.0-src/src'
My solution was to create the /usr/include/qt4/Qt3D folder.
Just type this in a terminal window
sudo mkdir /usr/include/qt4/Qt3D
This fixed the problem for me.
Also you might need to type
sudo mkdir /usr/include/qt4/QtQuick3D
To create the QtQuick3D directory.
Make sure you have qt-devel (or similar) development package installed for Qt. The library-only default package doesn't have headers nor development tools (moc, uic, qmake, etc.).
Alas, your problem seems to be that you're trying to install it to the default prefix /usr without running sudo make install. I suggest you mkdir ~/qt3d && configure --prefix=~/qt3d, so that it gets installed in your home directory.