Packages and Source code possible simultaneously?
Hi,
I use now Yade 0.60 package version and want to check source code too. Is it possible to have both versions at the same time? If so, how to install source code, say, yade-0.60.3 release version? What all I have to do is to uncompresse yade-0.60.3.tar.bz2 and then compile tying scons PREFIX=
If I compile properly, how to run source code version (how to type on terminal)?
Thank you,
Kumara
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Christian Jakob
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Yes, you can compile as much yade versions as you want!
This is simply done by compiling into different folders.
Example:
download YADE version x to folder /home/kumara/
download YADE version y to folder /home/kumara/
cd /home/kumara/
scons PREFIX=
cd /home/kumara/
scons PREFIX=
After this you should have two executables
(/home/
If you want to run one of these you can execute in terminal by typing:
~/YADE-X/bin/yade-x
If you do not want to use such a long command, you can alias it in
your /home/kumura/
Simply add this lines at the end of your .bashrc:
alias yade-x=
alias yade-y=
Then restart your bash with . ~/.bashrc and then you can use these commands:
yade-x
yade-y
Regards,
Christian.
Zitat von janaka kumara <email address hidden>:
> New question #174861 on Yade:
> https:/
>
> Hi,
>
> I use now Yade 0.60 package version and want to check source code
> too. Is it possible to have both versions at the same time? If so,
> how to install source code, say, yade-0.60.3 release version? What
> all I have to do is to uncompresse yade-0.60.3.tar.bz2 and then
> compile tying scons PREFIX=
>
> If I compile properly, how to run source code version (how to type
> on terminal)?
>
> Thank you,
>
> Kumara
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
Revision history for this message
|
#2 |
Thanks Christian,
This is what happened when I tried
kumara@
kumara@
scons: Reading SConscript files ...
@@@ Using profile default (scons.
Yade version is `0.60.3' (0.60.3), installed files will be suffixed with `-0.60.3'.
All intermediary files will be in `/home/
Mkdir("
Checking whether c++ compiler "g++" works...no
Your compiler is broken, no point in continuing. See `/home/
kumara@
This is what you can see in `/home/
file /home/kumara/
Configure(confdir = /home/kumara/
scons: Configure: Checking whether c++ compiler "g++" works...
/home/kumara/
|#include<
|int main(int argc, char**argv)
|
g++ -o /home/kumara/
sh: g++: not found
scons: Configure: no
Any helps are really appreciated.
Note: I use Ubuntu
Janaka
Revision history for this message
|
#3 |
Read error messages carefully, they are usefull in general. I see in
your output:
"Checking whether c++ compiler "g++" works...no
Your compiler is broken, no point in continuing.
sh: g++: not found "
You need a c++ compiler in order to compile some c++ code...
See installation instructions in the documentation, and especially
prerequisites: https:/
Bruno
Revision history for this message
|
#4 |
It seems, that a compiler is not installed.
> Your compiler is broken, no point in continuing.
I am not sure, but I think you need gcc for compiling...
If it is not installed, install it with: 'aptitude install gcc' or
'apt-get install gcc'
Revision history for this message
|
#5 |
Thanks Jakob and Bruno,
Jakob, I think I got gcc installed properly (sudo apt-get install gcc) but there is no folder named "bin" as you said in /home/kumara/
Bruno, since I already use Yade package (0.60) and I didn't have any problems with gcc, though I read that error message I didn't want to risk loosing exiting yade without knowing it well (I am not comfortable installing yade even after I use it for some times). In fact, that just now happened. Now, I cannot use yade 0.60 (which I used for few months).
Previously when I typed yade on terminal, I got it but today (after installed gcc), this is what i got
kumara@
Welcome to Yade 0.60
Traceback (most recent call last):
File "/usr/bin/yade", line 105, in <module>
import yade
File "/usr/lib/
ctypes.
File "/usr/lib/
return self._dlltype(name)
File "/usr/lib/
self._handle = _dlopen(self._name, mode)
OSError: /usr/lib/
Even I typed Yade 0.60 but nothing work. Do you think something wrong happened with gcc installation (you can see below)? Thanks much for your comments.
Janaka
.......
This is what happened when I installed gcc
kumara@
[sudo] password for kumara:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libqglviewer-
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
cpp cpp-4.5 gcc-4.5 gcc-4.5-base libc-bin libc-dev-bin libc6 libc6-dev
libcloog-ppl0 libelfg0 libgcc1 libgfortran3 libgmpxx4ldbl libgomp1 libmpc2
libnih-dbus1 libnih1 libppl-c2 libppl7 libstdc++6 multiarch-support
Suggested packages:
cpp-doc gcc-4.5-locales gcc-multilib autoconf automake1.9 libtool flex bison
gcc-doc gcc-4.5-multilib libmudflap0-4.5-dev gcc-4.5-doc libgcc1-dbg
libgomp1-dbg libmudflap0-dbg binutils-gold glibc-doc
The following NEW packages will be installed:
cpp-4.5 gcc-4.5 libcloog-ppl0 libelfg0 libgmpxx4ldbl libmpc2 libppl-c2
libppl7 multiarch-support
The following packages will be upgraded:
cpp gcc gcc-4.5-base libc-bin libc-dev-bin libc6 libc6-dev libgcc1
libgfortran3 libgomp1 libnih-dbus1 libnih1 libstdc++6
13 upgraded, 9 newly installed, 0 to remove and 1178 not upgraded.
Need to get 23.1MB of archives.
After this operation, 31.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Fetched 23.1MB in 3s (6,467kB/s)
Preconfiguring packages ...
(Reading database ... 129837 files and directories currently installed.)
Preparing to replace libnih-dbus1 1.0.2-1ubuntu2 (using .../libnih-
Unpacking replacement libnih-dbus1 ...
Preparing to replace libnih1 1.0.2-1ubuntu2 (using .../libnih1_
Unpacking replacement libnih1 ...
Preparing to replace libc6-dev 2.12.1-0ubuntu6 (using .../libc6-
Unpacking replacement libc6-dev ...
Preparing to replace libc-dev-bin 2.12.1-0ubuntu6 (using .../libc-
Unpacking replacement libc-dev-bin ...
Preparing to replace libc-bin 2.12.1-0ubuntu6 (using .../libc-
Unpacking replacement libc-bin ...
Processing triggers for man-db ...
Setting up libc-bin (2.13-0ubuntu13) ...
(Reading database ... 129857 files and directories currently installed.)
Preparing to replace libc6 2.12.1-0ubuntu6 (using .../libc6_
Checking for services that may need to be restarted...
Checking init scripts...
Unpacking replacement libc6 ...
Setting up libc6 (2.13-0ubuntu13) ...
Installing new version of config file /etc/ld.
Generating locales...
en_AG.UTF-8... done
en_AU.UTF-8... done
en_BW.UTF-8... done
en_CA.UTF-8... done
en_DK.UTF-8... done
en_GB.UTF-8... done
en_HK.UTF-8... done
en_IE.UTF-8... done
en_IN.UTF-8... done
en_NG.UTF-8... done
en_NZ.UTF-8... done
en_PH.UTF-8... done
en_SG.UTF-8... done
en_US.UTF-8... done
en_ZA.UTF-8... done
en_ZW.UTF-8... done
Generation complete.
Checking for services that may need to be restarted...
Checking init scripts...
Restarting services possibly affected by the upgrade:
cups: restarting...done.
cron: restarting...done.
atd: restarting...done.
Services restarted successfully.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Selecting previously deselected package multiarch-support.
(Reading database ... 129857 files and directories currently installed.)
Unpacking multiarch-support (from .../multiarch-
Setting up multiarch-support (2.13-0ubuntu13) ...
(Reading database ... 129860 files and directories currently installed.)
Preparing to replace libgomp1 4.5.1-7ubuntu2 (using .../libgomp1_
Unpacking replacement libgomp1 ...
Preparing to replace gcc-4.5-base 4.5.1-7ubuntu2 (using .../gcc-
Unpacking replacement gcc-4.5-base ...
Setting up gcc-4.5-base (4.5.2-8ubuntu4) ...
(Reading database ... 129864 files and directories currently installed.)
Preparing to replace libstdc++6 4.5.1-7ubuntu2 (using .../libstdc+
Unpacking replacement libstdc++6 ...
Setting up libstdc++6 (4.5.2-8ubuntu4) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 129864 files and directories currently installed.)
Preparing to replace libgfortran3 4.5.1-7ubuntu2 (using .../libgfortran
Unpacking replacement libgfortran3 ...
Preparing to replace libgcc1 1:4.5.1-7ubuntu2 (using .../libgcc1_
Unpacking replacement libgcc1 ...
Setting up libgcc1 (1:4.5.2-8ubuntu4) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Selecting previously deselected package libgmpxx4ldbl.
(Reading database ... 129864 files and directories currently installed.)
Unpacking libgmpxx4ldbl (from .../libgmpxx4ld
Selecting previously deselected package libppl7.
Unpacking libppl7 (from .../libppl7_
Selecting previously deselected package libppl-c2.
Unpacking libppl-c2 (from .../libppl-
Selecting previously deselected package libcloog-ppl0.
Unpacking libcloog-ppl0 (from .../libcloog-
Selecting previously deselected package libelfg0.
Unpacking libelfg0 (from .../libelfg0_
Selecting previously deselected package libmpc2.
Unpacking libmpc2 (from .../libmpc2_
Selecting previously deselected package cpp-4.5.
Unpacking cpp-4.5 (from .../cpp-
Preparing to replace cpp 4:4.4.4-1ubuntu2 (using .../cpp_
Unpacking replacement cpp ...
Selecting previously deselected package gcc-4.5.
Unpacking gcc-4.5 (from .../gcc-
Preparing to replace gcc 4:4.4.4-1ubuntu2 (using .../gcc_
Removing old gcc doc directory.
Unpacking replacement gcc ...
Processing triggers for man-db ...
Setting up libnih1 (1.0.3-1ubuntu1) ...
Setting up libnih-dbus1 (1.0.3-1ubuntu1) ...
Setting up libc-dev-bin (2.13-0ubuntu13) ...
Setting up libc6-dev (2.13-0ubuntu13) ...
Setting up libgomp1 (4.5.2-8ubuntu4) ...
Setting up libgfortran3 (4.5.2-8ubuntu4) ...
Setting up libgmpxx4ldbl (2:4.3.
Setting up libppl7 (0.10.2-10ubuntu1) ...
Setting up libppl-c2 (0.10.2-10ubuntu1) ...
Setting up libcloog-ppl0 (0.15.9-2) ...
Setting up libelfg0 (0.8.13-1) ...
Setting up libmpc2 (0.9-1) ...
Setting up cpp-4.5 (4.5.2-8ubuntu4) ...
Setting up cpp (4:4.5.2-1ubuntu3) ...
Setting up gcc-4.5 (4.5.2-8ubuntu4) ...
Setting up gcc (4:4.5.2-1ubuntu3) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Revision history for this message
|
#6 |
if you are not planning to hack the yade code, I would recommend you
to use pre-built versions of yade.
To install the stable 0.60.3 version, just follow the instruction from FAQ:
https:/
Anton
Revision history for this message
|
#7 |
Thanks Bruno.
Sorry I am not too sure how to do but this is what I want to do with yade.
1. simulate triaxial tests with angular particles (until now I know only triaxial tests with spheres).
2. simulate triaxial tests for mixtures of different materials (e.g. gravel and sand) using psdSizes, psdCumm.
Can these two works be done with pre-built version? Maybe then I dont need to try with source code versions. I am really sorry, my knowledge on codes are poor yet.
Kumara
Revision history for this message
|
#8 |
The problem is, that your library is not in the right folder ...
> OSError: /usr/lib/
> such file or directory
You can create a symbolic link to avoid this error message:
ln -s /usr/local/
If libstdc++.so.6 is not in /usr/local/lib/ then please search for it
and create the symbolic link to this path.
Christian
P.S. There is no /home/kumara/
Revision history for this message
|
#9 |
Hello, about your goals :
"1. simulate triaxial tests with angular particles (until now I know only triaxial tests with spheres).
2. simulate triaxial tests for mixtures of different materials (e.g. gravel and sand) using psdSizes, psdCumm."
For 1. angular discrete elements do not exist now in yade (box excepted, but they can only be used as boundaries). The solution is to use numerical samples of clusters = aggregates of spheres.
So, both for 1. and 2. I think that reaching your goals require only some special operations in the realisation of the numerical sample. Even if I never used clusters, I think that all what concerns this realisation can be performed through python interface.
To conclude, I think that yes you do not need really to have access to code and use source versions.
(But you still have the right to want to, for curiosity...)
Revision history for this message
|
#10 |
Thanks Christian,
I tried your instruction but it says "permission denied". Any idea to overcome it?
ln -s /usr/lib/
ln: creating symbolic link `/usr/lib/
Revision history for this message
|
#11 |
you need to be root for this ...
try:
sudo ln -s /usr/lib/
Revision history for this message
|
#13 |
Thanks Christian Jakob, that solved my question.