Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error #1

Closed
holgado1 opened this issue Aug 3, 2016 · 3 comments
Closed

Compile error #1

holgado1 opened this issue Aug 3, 2016 · 3 comments

Comments

@holgado1
Copy link

holgado1 commented Aug 3, 2016

I am running into a compiling error after running 'make':

--------------
Creating binary char for src/Python/pyprofiles.py : build/src/Python/pyprofiles.pyh
/bin/sh: xxd: command not found
Checking dependencies for src/Params/Params.cpp
Creating binary char for src/Python/pyprofiles.py : build/src/Python/pyprofiles.pyh
/bin/sh: xxd: command not found
Checking dependencies for src/Params/Params.cpp
Creating binary char for src/Python/pyprofiles.py : build/src/Python/pyprofiles.pyh
/bin/sh: xxd: command not found
Checking dependencies for src/Params/Params.cpp
.
.
.
--------------

which continues recursively.

@iltommi
Copy link
Contributor

iltommi commented Aug 3, 2016

You need to install xxd package. I don't know which OS you're trying to install Smilei on, but on Debian based systems, xxd should come in the base system.

On Redhat based Fedora I got a Report from a user so kind to provide instructions (thanks Jun Fang!):

  1. openmpi install:

    download the source file openmpi-xxx.tar.gz

    tar -zxvf openmpi-xxx.tar.gz
    cd openmpi-xxx
    ./configure --prefix=/home/XXXX/openmpi --enable-mpi-thread-multiple
    make
    make install

    Add the following two lines in the .bashrc file,

    export PATH="$PATH:/home/XXXX/openmpi/bin"
    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/XXXX/openmpi/lib/"
  2. HDF5 install

    download the source file HDF5 from http://www.hdfgroup.org/HDF5/

    CC=mpicc ./configure --prefix=/home/xxx/HDF5-parallel --enable-parallel
    make
    make install
    Add the folowing line in the .bashrc file,
    export LD_LIBRARY_PATH="/home/xxx/HDF5-parallel/lib":$LD_LIBRARY_PATH
  3. If xxd is not installed, you should do the commands

    sudo yum update vim-minimal 
    sudo yum install vim-enhanced
  4. add the following lines in the .bashrc file,

    export SMILEICXX=mpicxx
    export HDF5_ROOT_DIR=/home/xxx/HDF5-parallel
    1. Go in the smilei dir and compile:
    make

@iltommi
Copy link
Contributor

iltommi commented Aug 3, 2016

Anyway,
in the next release we plan to remove the xxd dependency, so stay tuned!

Feel free to close the issue if the above commands work for you.

keep Smileing

@holgado1
Copy link
Author

holgado1 commented Aug 3, 2016

Thanks! I solved the problem by loading a vim module.

@holgado1 holgado1 closed this as completed Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants