Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Install a command-line directory indexing tool UNIX
I just discovered Glimpse, a command line tool for directory indexing and searching (much like Sherlock indexing). From their website:
GLIMPSE: A tool to search entire file systems

Introduction
Glimpse is a very powerful indexing and query system that allows you to search through all your files very quickly. It can be used by individuals for their personal file systems as well as by organizations for large data collections.
Glimpse is supposed to be extremely fast, although I have not done any benchmarking on it. I did manage to get it to compile and install.

Read the rest of the article for the how-to...

I installed the latest Glimpse version 4.16.2 available here with some minor modifications.

Upon first 'make', I got an error about a missing header file. I searched on my machine and actually had the header file in my Fink directory, so I just copied it over, played around with the location and eventually hit on the sweet spot. The header file in question is dlfcn.h, and for me it was located in /sw/include/dlfcn.h. Compile cranked out a few warning and errors, but otherwise installed and seems to run fine.

After installing 4.16.2 I realized they actually have a user-contributed BSD binary available - it is a lower version but if you have trouble you might want to try that - it can be found here.

Here is the method I used to compile and install Glimpse 4.16.2:
 % curl -O http://webglimpse.net/trial/glimpse-4.16.2.tar.gz
% tar -zxvf glimpse-4.16.2.tar.gz
% cd glimpse-4.16.2
% cp /sw/include/dlfcn.h index/
% ./configure
% make
% sudo make install
Check out the extensive online documentation or read the installed manpages for more information on the program.

Note there is also an interface for Glimpse that will allow searches from your web browser (webglimpse). I did not test this interface.
    •    
  • Currently 0.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (0 votes cast)
 
[3,395 views]  

Install a command-line directory indexing tool | 7 comments | Create New Account
Click here to return to the 'Install a command-line directory indexing tool' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
is there some other trick.
Authored by: eoberle on Aug 06, '02 07:59:48PM

\0\05{\0\0\0\0\0\0\0\0ool, but it didn't work for me. I compiled exactly as you say and received a linking error.... any ideas?

thanks,

Eric

Here's the message:
.....stuff deleted......
gcc -c -I../index -I../agrep -I../libtemplate/include partition.c
gcc -L../lib -o ../bin/buildcast buildcast.o region.o dir.o io.o build_in.o filetype.o simpletest.o getword.o memlook.o lib.o partition.o -lagrep -ldl
/usr/bin/ld: can't locate file for: -ldl
make[1]: *** [notsbuildcast] Error 1
make: *** [build-sub] Error 2



[ Reply to This | # ]
is there some other trick.
Authored by: bluehz on Aug 07, '02 12:04:42AM

Sorry - I'm just a newbie myself. Not to good at analyzing the error msgs. Maybe someone on the board can kick in a tip or two.

Did you try installing one of the precompiled binaries? That might work better.



[ Reply to This | # ]
is there some other trick.
Authored by: buc40 on Aug 07, '02 01:00:36PM

What version of Mac OSX Developer Tools are you using?



[ Reply to This | # ]
is there some other trick.
Authored by: bluehz on Aug 08, '02 12:05:24AM

Hmmm - I am using the April 2002 Developer tools.



[ Reply to This | # ]
another linker error
Authored by: sapporo on Aug 07, '02 03:07:12PM

hmm, doesn't work for me either. I worked around the first linker error like this:
cp /sw/lib/libdl.a lib/
ranlib lib/libdl.a

but it still wont link correctly:

<snip>
cc -Llib -o bin/glimpse main.o get_filename.o get_index.o split.o index/region.o index/getword.o index/filetype.o index/simpletest.o index/memlook.o index/lib.o index/io.o -lagrep -lm
/usr/bin/ld: warning multiple definitions of symbol _strdup
index/lib.o definition of _strdup in section (__TEXT,__text)
/usr/lib/libm.dylib(strdup.o) definition of _strdup
/usr/bin/ld: Undefined symbols:
_dlclose
_dlerror
_dlopen
_dlsym
/usr/bin/ld: warning unused multiple definitions of symbol _AM
"link editor" definition of _AM in section (__DATA,__common)
/usr/lib/libm.dylib(curses.o) unused definition of _AM
/usr/bin/ld: warning unused multiple definitions of symbol _table
"link editor" definition of _table in section (__DATA,__common)
/usr/lib/libm.dylib(table.o) unused definition of _table
make: *** [notsglimpse] Error 1

can anyone help?

TIA,
-sapporo.



[ Reply to This | # ]
Binaries Available
Authored by: bluehz on Aug 08, '02 02:20:20AM
Not sure why I was able to compile and install this - but it seems many people are having trouble. I bundled up the compiled binaries and manpages from my install and put them on my iDisk if you want to download it and give it a go. Not sure if it relies on other dynamically linked libraries or not. I included everything that was installed. I do not know how to create an installer pkg and don't really want the responsibility - if something goes wrong. So the included binaries will have to be manually installed (easy!), see the included README. Can't really do any damage - so the worst that could happen would be they don't work. You can get the binaries here: http://homepage.mac.com/Macvoodoochile/Glimpse-4.16.2-MacOSX.sit (at least until my iDisk goes the way of the Newton - bye-bye - next month. Let me know if it works out and I will submit the pkg to the Glimpse site to offer in their contributed downloads space if you guys have success with it. Be sure and look at the online docs also - you have to index - just like with Sherlock - before it is of much use. Looks very powerful - but I have not discovered it all yet.

[ Reply to This | # ]
Binaries Available
Authored by: bluehz on Aug 08, '02 11:36:37AM
Ok - I found the missing link here. It is a file called libdl.dylib located in the /usr/local/lib dir. I don't know why I have it - but it is not a stock OS X item - I just tried my binaries on a stock install and they failed. If you downloaded the binaries from the link above before 11:30AM EDT / 08-AUG-2002 then you will need to either redownload the archive or just download the libdl.dylib which I also included as a seperate archive. Download the complete install here: http://homepage.mac.com/Macvoodoochile/Glimpse-4.16.2-MacOSX.sit or if you just need the libdl.dylib file, then download it here: libdl.dylib.sit

[ Reply to This | # ]