I installed TotalView on Ubuntu. For the begining I just tried to debug a very simple Hello Word program in but I got the following error:
"Fatal Error: Can't set up library cache directory -- cannot debug this target. Do you want to run the TotalView Diagnostic Tool?"
I don't know what is the library cache directory. Any idea about the library cache directory in ubuntu can be helpful.
I'm running code using Ubuntu on a WSL. Every time I edit some C files I need to execute a makefile and run an installer to ensure that the changes are reflected in the python package that I am using. The set of commands I need to execute is
make clean
make
cd python
python setup.py install --user
This works perfectly when I execute them in the terminal. In order to make my life easier, I decided to put these commands in a text file Compile.txt to be executed whenever I need to compile the relevant files. I found this question and tried to replicate its solution. However, whenever I type ./Compile.txt into the terminal I get the error
'. Stop. No rule to make target 'clean
gcc -o .o
gcc: fatal error: no input files
compilation terminated.
make: *** [<builtin>: .o] Error 1
./Compile.txt: line 7: cd: $'python\r': No such file or directory
python: can't open file 'setup.py': [Errno 2] No such file or directory
Can anyone explain what I've done wrong? I apologise for any misuse of terminology as I'm still quite new to Linux.
Thanks in advance.
I am very new to linux. I am trying to build lammps open source software with user defined modules that require to build mpi executable on opensuse leap 15.1.
lammps - https://lammps.sandia.gov/doc/Build_make.html
It showed an error: mpicxx xommand not found.
after searching i did "sudo zypper in gcc-c++" and tried again.
same error
so I did "export PATH=$PATH:/usr/lib64/mpi/gcc/openmpi/bin"
and make mpi was successful and it built lmp_mpi executable but when i tried to run with lmp_mpi it showed following error:
error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file
so I wrote "export PATH=$PATH:/usr/lib64/mpi/gcc/openmpi/bin" in my bashrc file and ran again make mpi and tried again same error is shown.
I tried by installing mpich2 with yast same error is shown.
Then I tried by installing openmpi as shown here http://edu.itp.phys.ethz.ch/hs12/programming_techniques/openmpi.pdf
When I tried to build mpi again same error "mpicxx: Command not found error" and also when I open terminal following lines are written already.
bash: /home/surya/.bashrc: line 1: syntax error near unexpected token newline'
bash: /home/surya/.bashrc: line 1:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/opt/openmpi/lib >'
Someone please help me I have been trying this for long time.
Thanks for the suggestions.
I am trying to debug an application remotely in Eclipse. When I start debugging, the application is deployed and the gdbserver is started on the target. This seems to work automatically without any mistakes, but then following error occurs:
'Launching helloworld Build(GNU)' has encountered a problem.
Could not determine GDB version using command: /usr/bin/gdb --version
When I expand <<Details in Eclipse this is shown:
Could not determine GDB version using command: /usr/bin/gdb --version
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
In a console on the target /usr/bin/gdb --version is showing me the version and when I open a Python shell I can import encodings without errors.
Does anybody know where this error comes from? I wasn't sure about how to tag this question since I have no clue in which area the solution will be.
What I tried so far:
In Eclipse/Debug Configurations: Commands to execute before application: Several export commands to Python.
Same in /etc/profile.
bitbake -e python | grep "^PACKAGES=" : Inserted every python package into my image recipe via IMAGE_INSTALL_append.
[...]
I've installed Graphviz, Doxygen on Windows 7. Now, I do have cygwin64 installed, but I don't care, I just want the doxyfiles to have graphs.
I use the CMD prompt or cygwin, it fails on both. everything is installed under Windows7
No matter what I do I cannot get Doxygen to generate docs with graphs embedded in them.
I did this...
How to use doxygen to create UML class diagrams from C++ source
No luck, It just does not work, so I set DOT_CLEANUP = NO. Still no luck.
I'm running inside c:\labs. I do a C:\Doxygen Doxfile
I get...
finalizing index lists...
Running dot...
Generating dot graphs using 5 parallel threads...
Running dot for graph 1/3
Running dot for graph 2/3
Running dot for graph 3/3
Error: dot: can't open /cygdrive/c/labs/html/classA__coll__graph.dot
error: Problems running dot: exit code=2, command='dot', arguments='"/cygdrive/c/labs/html/classA__coll__graph.dot" -Tpng -o "/cygdrive/c/labs/html/classA__coll__graph.png"'
Error: dot: can't open /cygdrive/c/labs/latex/classA__coll__graph.dot
error: Problems running dot: exit code=2, command='dot', arguments='"/cygdrive/c/labs/latex/classA__coll__graph.dot" -Tpdf -o "/cygdrive/c/labs/latex/classA__coll__graph.pdf"'
Error: dot: can't open /cygdrive/c/labs/html/graph_legend.dot
error: Problems running dot: exit code=2, command='dot', arguments='"/cygdrive/c/labs/html/graph_legend.dot" -Tpng -o "/cygdrive/c/labs/html/graph_legend.png"'
Patching output file 1/2
error: problems opening map file /cygdrive/c/labs/html/classA__coll__graph.map for inclusion in the docs!
If I run under cygwin, I get the same thing. I've tried using the Doxywizard also.
Why can't I generate the diagrams?
Thanks for help,
As #Albert suggested, this is caused by trying to mix Cygwin doxygen with Windows dot (graphviz). I ran into the same problem which led me here. I ran which doxygen and which dot to determine that my doxygen was coming from Cygwin but my dot was coming from a Windows installation of graphviz.
The solution for me was to run the Cygwin setup and add/install graphviz. After doing so, the errors went away.