Unix Shell - which shell?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > August 2007 > which shell?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author which shell?
mauro

2007-08-21, 1:34 am

Hi all,
I'm getting really confuse installing a program (vtk) on my ubuntu
linux.
it needs some environment variables and (I guess) it doesn't have a
definition. So I think that I absolutely need to refresh my knowledge
about shells!
So, I would like to know few things how can I know the shell I'm using
(what is the command to see in wich shell I am)!

I also have another problem and I'm trying to figure out if it can be
related with the shell or not!
I've compiled opencv (graphics libraries, doing make; make install and
following all the directions) and it creates the libcv.la, libcv.so,
libcv.so.1, libcv.so.1.0.0, I include the right .h file, but when I
call a function it doens't find the actual function to load:
/tmp/ccdYdt0f.o: In function `main':
opencv.cpp.text+0x52): undefined reference to `cvLoadImage'
opencv.cpp.text+0xe5): undefined reference to `cvNamedWindow'
opencv.cpp.text+0x101): undefined reference to `cvMoveWindow'

I'm wondering if it can be a problem of shell configuration... I tried
everything, but I cannot coming through! Please, any help or
suggestion (or even a right NG to ask to) it is greatly appreciated

cheers,
Mauro

Floris Bruynooghe

2007-08-21, 7:22 am

On Aug 21, 2:49 am, mauro <mauro.austra...@gmail.com> wrote:
> Hi all,
> I'm getting really confuse installing a program (vtk) on my ubuntu
> linux.
> it needs some environment variables and (I guess) it doesn't have a
> definition. So I think that I absolutely need to refresh my knowledge
> about shells!
> So, I would like to know few things how can I know the shell I'm using
> (what is the command to see in wich shell I am)!


"echo $0" or "echo $SHELL" might give you something useful

> I also have another problem and I'm trying to figure out if it can be
> related with the shell or not!
> I've compiled opencv (graphics libraries, doing make; make install and
> following all the directions) and it creates the libcv.la, libcv.so,
> libcv.so.1, libcv.so.1.0.0, I include the right .h file, but when I
> call a function it doens't find the actual function to load:
> /tmp/ccdYdt0f.o: In function `main':
> opencv.cpp.text+0x52): undefined reference to `cvLoadImage'
> opencv.cpp.text+0xe5): undefined reference to `cvNamedWindow'
> opencv.cpp.text+0x101): undefined reference to `cvMoveWindow'
>
> I'm wondering if it can be a problem of shell configuration... I tried
> everything, but I cannot coming through! Please, any help or
> suggestion (or even a right NG to ask to) it is greatly appreciated


Might be that your linker does not know where to find the shared
library objects. If you have installed in according to instructions
("make install"?) it should be picked up if it's well behaved, however
if you want you can cheat by doing "export LD_LIBRARY_PATH=/path/to/
openvc/libs" which might help you.

Regards
Floris

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com