Installation of GranOO 2.0

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Installation of GranOO 2.0

Martin
Hello,

I try to install GranOO on my computer, it works with Windows 10 but I installed Ubuntu.
When I have to add the GranOO installation directory to my logging environment, it does not work. Do you know why ? And how can I fix it ?

martin@PC1506005:~$ echo 'export GRANOO_INSTALL_DIR=~/granoo/install/GranOO/2.0' >>~/.bashrc
martin@PC1506005:~$ echo 'export PATH=$PATH:$GRANOO_INSTALL_DIR/bin' >>~/.bashrc
martin@PC1506005:~$ echo 'export PATH=$PATH:$GRANOO_INSTALL_DIR/script' >>~/.bashrc
martin@PC1506005:~$ echo 'export PYTHONPATH=$PYTHONPATH:$GRANOO_INSTALL_DIR/python' >>~/.bashrc
martin@PC1506005:~$ source ~/.bashrc
Command 'lesspipe' is available in the following places
 * /bin/lesspipe
 * /usr/bin/lesspipe
The command could not be located because '/usr/bin:/bin' is not included in the PATH environment variable.
lesspipe: command not found
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dircolors: command not found
-bash: export: `=': not a valid identifier
-bash: export: `/home/martin/granoo/install/GranOO/2.0': not a valid identifier
-bash: export: `/home/martin/granoo/install/GranOO/2.0': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `/home/martin/granoo/install/GranOO/2.0': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `/home/martin': not a valid identifier
-bash: export: `/': not a valid identifier
-bash: export: `/': not a valid identifier
-bash: export: `/': not a valid identifier
-bash: export: `/': not a valid identifier
-bash: export: `2.0': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `$': not a valid identifier
-bash: export: `PATH:': not a valid identifier
-bash: export: `$': not a valid identifier
-bash: export: `/': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `$': not a valid identifier
-bash: export: `PATH:': not a valid identifier
-bash: export: `$': not a valid identifier
-bash: export: `/': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `$': not a valid identifier
-bash: export: `PYTHONPATH:': not a valid identifier
-bash: export: `$': not a valid identifier
-bash: export: `/': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `/home/martin/granoo/install/GranOO/2.0': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `:/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.00/bin:/home/martin/granoo/install/GranOO/2.00/bin:/home/martin/granoo/install/GranOO/2.00/bin:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `:/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.00/bin:/home/martin/granoo/install/GranOO/2.00/bin:/home/martin/granoo/install/GranOO/2.00/bin:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/script': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `:/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python': not a valid identifier
-bash: export: `/home/martin/granoo/install/GranOO/2.0': not a valid identifier
-bash: export: `:/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.00/bin:/home/martin/granoo/install/GranOO/2.00/bin:/home/martin/granoo/install/GranOO/2.00/bin:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/home/martin/granoo/install/GranOO/2.0/bin:/home/martin/granoo/install/GranOO/2.0/script:/bin': not a valid identifier
-bash: export: `:/script': not a valid identifier
-bash: export: `:/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/home/martin/granoo/install/GranOO/2.0/python:/python': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `/home/martin/granoo/install/GranOO/2.0': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `$': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export: `$': not a valid identifier
-bash: export: `GRANOO_INSTALL_DIR/bin': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `$': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export: `$': not a valid identifier
-bash: export: `GRANOO_INSTALL_DIR/script': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `$': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export: `$': not a valid identifier
-bash: export: `GRANOO_INSTALL_DIR/python': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `/home/martin/granoo/install/GranOO/2.0': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export: `/bin': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export: `/script': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export: `/python': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `/home/martin/granoo/install/GranOO/2.0': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export: `/bin': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export: `/script': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export: `/python': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `/home/martin/granoo/install/GranOO/2.0': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `:/granoo/install/GranOO/2.0/bin': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export: `/granoo/install/GranOO/2.0/bin': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `:/granoo/install/GranOO/2.0/bin': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export: `/granoo/install/GranOO/2.0/script': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `:/granoo/install/GranOO/2.0/python': not a valid identifier
-bash: export: `:': not a valid identifier
-bash: export: `/granoo/install/GranOO/2.0/python': not a valid identifier
Reply | Threaded
Open this post in threaded view
|

Re: Installation of GranOO 2.0

Damien André
Administrator
Hello, It seems that your file "~/.bashrc" is corrupted. My advice is to replace your bashrc file by a new one and restart the procedure of "echo .... bla-bla".

If your system is an ubuntu's one, you can follow this article : https://www.ostechnix.com/restore-bashrc-file-default-settings-ubuntu/

Your problem is not related specifically to GranOO... It comes from a misunderstanding of GNU/Linux usage and administration.

Best regards, Damien.
Reply | Threaded
Open this post in threaded view
|

Re: Installation of GranOO 2.0

Martin
Thanks.

But now, I can't edit the file ".baschrc" to install an X server.
Do you know the solution ?

martin@PC1506005:~$ bash nano /home/martin/.bashrc
/bin/nano: /bin/nano: cannot execute binary file

Best regards,
Martin.
Reply | Threaded
Open this post in threaded view
|

Re: Installation of GranOO 2.0

Damien André
Administrator
Please use :
martin@PC1506005:~$ nano /home/martin/.bashrc

instead of :
martin@PC1506005:~$ bash nano /home/martin/.bashrc

to edit your bashrc file.
Reply | Threaded
Open this post in threaded view
|

Re: Installation of GranOO 2.0

Martin
Thanks.
I have now edited the .bashrc file, I added "bash export DISPLAY=:0.0" at the end of the file. And when I tried the example, it failed.

martin@PC1506005:~$ cd $DIR/granoo/tags/2.0/Example/Granular/Rain/
-bash: cd: /granoo/tags/2.0/Example/Granular/Rain/: No such file or directory
martin@PC1506005:~$ mkdir build && cd build/ && cmake ../ && make && cd ../
CMake Error: The source directory "/home/martin" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
martin@PC1506005:~/build$ ./build/rain.exe ./Rain.inp
-bash: ./build/rain.exe: No such file or directory
martin@PC1506005:~/build$ granoo-viewer ./Results/
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-martin'
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.

Yet, I installed XLaunch.
Reply | Threaded
Open this post in threaded view
|

Re: Installation of GranOO 2.0

Damien André
Administrator
Hello,
As I can see, your first command returns an error :
 
Martin wrote
martin@PC1506005:~$ cd $DIR/granoo/tags/2.0/Example/Granular/Rain/
-bash: cd: /granoo/tags/2.0/Example/Granular/Rain/: No such file or directory
If you want to use GranOO, you must have a some knowledges in :
- GNU/Linux system management
- C++ programming and compiling

Without these backgrounds, it will be very hard for you to install and use GranOO.

Kind regards, Damien.