LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-15-2006, 04:42 PM   #1
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Rep: Reputation: 30
Cool dictionary offline


Hi all,
I have downloaded a offline dictionary called 'ktranslator-0.4.tar.bz2' , I tried to install it reading install instructions but I failed. I am just a beginner in linux, could someone tell me step by step how to install it and where to type the commands like 'make install' and 'configure' (is in run commands) ?
... thanx
Mohammed Hammam
 
Old 06-16-2006, 12:48 AM   #2
SweetLou
Member
 
Registered: Oct 2004
Distribution: Debian Testing
Posts: 171

Rep: Reputation: 30
Well, I don't know what the directions say, but it looks like you just need to type:
./configure
make
make install (as root)

Just type these commands in the terminal of your choice.
 
Old 06-16-2006, 01:25 AM   #3
avheretic
Member
 
Registered: Oct 2005
Distribution: Slackware 11
Posts: 45

Rep: Reputation: 15
Another option ?

You could try using StarDict (http://stardict.sourceforge.net). It has a range of dictionaries available and integrates nicely with the UI.
 
Old 06-16-2006, 04:28 AM   #4
penguintutor
Member
 
Registered: Jun 2006
Location: UK
Distribution: Ubuntu, Mandriva, Redhat and Fedora
Posts: 118

Rep: Reputation: 15
Looks like a nice little tool, I'd not seen it before.

These are the steps I've just run through to install.

Uncompress the file
Code:
bzip2 -d ktranslator-0.4.tar.bz2
Extract the files from the single tar file
Code:
tar -xvf ktranslator-0.4.tar
The tar file extracts to a directory called ktranslator-0.4 so go into that
Code:
cd ktranslator-0.4
Configure - gets info about your system ready to compile
Code:
./configure
If the above step failed then it may be that you don't have either the compiler or the required libraries. It worked fine on my system, but you may need to install the QT development libraries first.

Now compile it
Code:
make
Now install it into the system. I have used sudo to run this with root permissions, alternatively run the make install as root
Code:
sudo make install
You've now compiled and installed the program

Now it's installed - run the program
The & runs it in the background so that it frees up your terminal
Code:
ktranslator &
You will need to add a dictionary from http://ktranslator.sourceforge.net/dictionaries.html. If the file ends in .gz then
Code:
gunzip filename
tar -xvf filename (without the .gz bit)
or bz2
Code:
bzip2 -d filename
tar -xvf filename (without the .bz2 bit)
If you are still getting problems, then please include the error message so that we can see what the problem is.
 
Old 06-16-2006, 05:03 PM   #5
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
Cool offline dictionary

Hi sweetLOU, avheretic, penguintutor, all,

I have got replies from the above members, 1st thank you for all.
2nd ...
I'll start with the first one ...
sweetLOU
I don't know what the directions say, but it looks like you just need to type:
./configure
make
make install (as root)
Just type these commands in the terminal of your choice.
+++++++++++++++++
I face a problem in c compiler
when i type in run mode
./configure
I got this error
&&&&&&&&&&&&&&&&
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
&&&&&&&&&&&&&&&&
linux-9tgg:/home/hammam/Documents/programs/ktranslator-0.4 # ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for kde-config... /opt/kde3/bin/kde-config
checking where to install... /opt/kde3 (as returned by kde-config)
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
linux-9tgg:/home/hammam/Documents/programs/ktranslator-0.4 #
&&&&&&&&&&&&&&&&

The above is the error I got.
Could someone help to free this error.
... thanx
Mohammed Hammam

Last edited by hammam12; 06-17-2006 at 10:59 AM.
 
Old 06-19-2006, 05:59 AM   #6
penguintutor
Member
 
Registered: Jun 2006
Location: UK
Distribution: Ubuntu, Mandriva, Redhat and Fedora
Posts: 118

Rep: Reputation: 15
The error is saying that you don't have a C compiler installed. The development packages have therefore not been installed. What distribution are you using.

For example:
Fedora / Mandriva / SuSe
are all rpm based, so you need to install the appropriate RPMS from your install disk.


If using Ubuntu
then this is Debian Package Management based.


All the distribution should have some kind of option to install software, or a package management tool (e.g. synaptic package manager). The name of the menu option differs between distribution.


When you get into the "add programs / package manager", you need to add some packages. At the least you should be installing:
gcc
kdelibs(devel)

You may be asked to installed dependencies, which you should answer yes to.

After installing these you can try the ./configure again, and if it reports other missing libraries then you will need to install them as well.

Stewart
 
Old 06-27-2006, 10:57 AM   #7
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
Hi penguintutor, all,
I've now compiled and installed the program

Now it's installed - run the program
The & runs it in the background so that it frees up your terminal

Code:
ktranslator &
It does not give me real translation.

linux-wyej:/home/hammam/Documents/programs/ktranslator-0.4 # gunzip EngtoGer.dic.gz
linux-wyej:/home/hammam/Documents/programs/ktranslator-0.4 # tar -xvf EngtoGer.dic
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 9374 bytes from EngtoGer.dic
tar: Error exit delayed from previous errors

Could you pls explain by example how these commands work ?

by the way how to change the font of this writting ?

... thanx
Mohamed Hammam
 
Old 06-28-2006, 03:37 AM   #8
penguintutor
Member
 
Registered: Jun 2006
Location: UK
Distribution: Ubuntu, Mandriva, Redhat and Fedora
Posts: 118

Rep: Reputation: 15
That looks like you've got the dictionary.

Most of the dictionaries are tar files, as they have multiple files (e.g. license information). However it looks like that is your final dictionary, just load it into ktranslator.

The following are some common extensions

.gz (gzipped)
.tar.gz (tarred and then gzipped)
.tgz (tarred and gzipped - same as .tar.gz)
.bz2 (bziped)
.tar.bz2 (tarred and bzipped)

Your file after uncompressing now ends with .dic which indicates it is probably a dictionary file.
 
Old 06-28-2006, 09:19 AM   #9
hammam12
Member
 
Registered: Jun 2006
Posts: 160

Original Poster
Rep: Reputation: 30
Hi penguintutor,
Thank you, the issue resolved.
... thanx
Mohammed Hammam
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dictionary michshelly LQ Suggestions & Feedback 2 04-26-2006 09:20 PM
Is there any free offline english loopup dictionary bsenthil Linux - Software 2 12-17-2005 12:44 AM
dictionary Kdr Kane Programming 3 03-29-2005 02:38 AM
dictionary santasballz Linux - Software 1 03-02-2004 01:15 AM
need dictionary tornado Linux - Software 3 09-25-2003 09:12 AM


All times are GMT -5. The time now is 11:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration