Hi Vikram,
the .bashrc file is a file that should be in your home directory (i.e. in
/home/vm308), but since it starts with a dot (.bashrc), you may not see it if
you just type 'ls' on the command line.
Try with
ls -a
(-a means, all files, including hidden ones), you should see a bunch of
"hidden" files. They are used to store user settings for applications.
It is also possible that there is no /home/vm308/.bashrc file, in which case
you can just create an empty one using
touch /home/vm308/.bashrc
Now, with any text editor, open .bashrc and type the paths as per the
instructions. Save the file and open a new terminal.
To be sure the settings are now available to the command line, type
echo $LD_LIBRARY_PATH
if you see a /usr/local/lib/vmtk among the paths returned by the command above,
then you should be all set and vmtk should work.
Let me know if this is ok for you.
Best regards
Luca
On Oct 26, 2010, at 4:00 PM, Vikram Mehta wrote:
> Hello,
>
> Regarding your reply, I managed to get added onto the sudo list to execute
> the 'sudo make install' list. The Cmake error was no longer showing. But this
> time the error is again :
>
> Traceback (most recent call last):
> File "./vmtk", line 4, in <module>
> from vmtk import pypes
> File "/home/vm308/src/vmtk-0.9.0/vmtk.py", line 4, in <module>
> from vmtk import pypes
> ImportError: cannot import name pypes
>
> On the installation pages of vmtk, I think this is the next step :
> Set a couple of environment variables. For Bash users, type the lines below
> or add them to your .bash_profile or .bashrc file (the difference is that
> with .bash_profile you have to logout and login back again for them to have
> an effect, and it may not work when logging in from graphical login managers;
> on the other side, .bashrc is read everytime a user opens up a terminal, so
> it's executed more often but it's safer).
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/vmtk
> export LD_LIBRARY_PATH
> PYTHONPATH=$PYTHONPATH:/usr/local/lib/vmtk
> export PYTHONPATH
> Also, don't forget to also add the paths to the ITK shared libraries
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/InsightToolkit
> export LD_LIBRARY_PATH
> * Starting with VTK 5.3, don't forget to also add the paths to the VTK shared
> libraries
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/vtk-5.3
> export LD_LIBRARY_PATH
>
> But could someone explain stepwise how to go through this since I am new to
> Linux and cant seem to work around the bash profile.
> Also, how do you add the above paths to the ITK and VTK shared libraries ?
>
> Please help.
>
> Vikram.
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America contest
> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev_______________________________________________
> vmtk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/vmtk-users
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
vmtk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vmtk-users