New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Installation Error in CentOS

General discussion

Installation Error in CentOS

Postby emab » Sun Apr 21, 2013 5:06 am

I tried to install goldendict rpm in centos and I got the following error (hunspell is installed!!!!!)

Code: Select all
goldendict-1.0.1-8.fc19.x86_64 requires libhunspell-1.3.so.0()(64bit)
goldendict-1.0.1-8.fc19.x86_64 requires libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
goldendict-1.0.1-8.fc19.x86_64 requires libc.so.6(GLIBC_2.14)(64bit)


and when I tried to run qmake in terminal to install from source code I faced with the following:

Code: Select all
fatal: Not a git repository (or any of the parent directories): .git
Project MESSAGE: Failed to precisely describe the version via Git -- using the default version string
Error processing project file: config.pri
common.pri:3: Unknown replace function: qtLibraryTarget


what is the problem? Can someone help me?
emab
 
Posts: 5
Joined: Sun Apr 21, 2013 4:52 am

Re: Installation Error in CentOS

Postby Tvangeste » Sun Apr 21, 2013 6:24 am

You're trying to build a very old version of GoldenDict.

Try the latest version from: https://github.com/goldendict/goldendict

It should build just fine on any Linux box with Qt 4.7.* or 4.8.*.
Tvangeste
 
Posts: 893
Joined: Thu Jun 02, 2011 11:42 am

Re: Installation Error in CentOS

Postby emab » Sun Apr 21, 2013 8:29 am

I downloaded the latest version from github!!!!! Since I cannot use git command, I downloaded the zip file from github and again I am having the problem:
Code: Select all
fatal: Not a git repository (or any of the parent directories): .git
Project MESSAGE: Failed to precisely describe the version via Git -- using the default version string
Error processing project file: config.pri
common.pri:3: Unknown replace function: qtLibraryTarget
qtsingleapplication.pri:5: Unknown test function: greaterThan


there is no config.pri in my goldendict-master directory!!!
emab
 
Posts: 5
Joined: Sun Apr 21, 2013 4:52 am

Re: Installation Error in CentOS

Postby Tvangeste » Sun Apr 21, 2013 10:19 am

What does 'qmake --version' prints?
Tvangeste
 
Posts: 893
Joined: Thu Jun 02, 2011 11:42 am

Re: Installation Error in CentOS

Postby chulai » Sun Apr 21, 2013 5:35 pm

emab wrote:I tried to install goldendict rpm in centos and I got the following error (hunspell is installed!!!!!)

Code: Select all
goldendict-1.0.1-8.fc19.x86_64 requires libhunspell-1.3.so.0()(64bit)
goldendict-1.0.1-8.fc19.x86_64 requires libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
goldendict-1.0.1-8.fc19.x86_64 requires libc.so.6(GLIBC_2.14)(64bit)


and when I tried to run qmake in terminal to install from source code I faced with the following:

Code: Select all
fatal: Not a git repository (or any of the parent directories): .git
Project MESSAGE: Failed to precisely describe the version via Git -- using the default version string
Error processing project file: config.pri
common.pri:3: Unknown replace function: qtLibraryTarget


what is the problem? Can someone help me?


For the Git message check: viewtopic.php?f=4&t=1560#p6943
For instructions to build from source check: http://goldendict.org/buildfromgit.php
These instructions are quite old but are ok except for missing a new required lib: libbz2-dev. So also check viewtopic.php?f=6&t=1559#p7050
chulai
 
Posts: 464
Joined: Sat Jan 08, 2011 10:11 pm

Re: Installation Error in CentOS

Postby emab » Wed Apr 24, 2013 5:34 am

The output of 'qmake --version' is

Code: Select all
Qmake version: 1.07a (Qt 3.3.8b)
Qmake is free software from Trolltech ASA.


and the output of 'qmake-qt4 --version' is:

Code: Select all
QMake version 2.01a
Using Qt version 4.6.2 in /usr/lib64


I downloaded and installed qt-4.8 from its source code, but why the version is still 4.6?!

On the other hand, I did two things to download the goldendict:
1- I went to "https://github.com/goldendict/goldendict" and downloaded the zip file master.zip
2- I pressed 'git clone git://github.com/goldendict/goldendict.git'

in the first case (downloaded master.zip) I get the errors that I mentioned in the previous posts, in the second case (downloaded from git command) when I press qmake, the terminal shows the help of qmake and asks for additional options!!!!!
emab
 
Posts: 5
Joined: Sun Apr 21, 2013 4:52 am

Re: Installation Error in CentOS

Postby emab » Wed Apr 24, 2013 5:43 am

I got the qt-4.8 working. I mean now when I press qmake, I get:

Code: Select all
QMake version 2.01a
Using Qt version 4.8.4 in /usr/local/Trolltech/Qt-4.8.4/lib


Now, it asks for additional options:

Code: Select all
Usage: qmake-qt4.8 [mode] [options] [files]

QMake has two modes, one mode for generating project files based on
some heuristics, and the other for generating makefiles. Normally you
shouldn't need to specify a mode, as makefile generation is the default
mode for qmake, but you may use this to test qmake on an existing project

Mode:
  -project       Put qmake into project file generation mode
                 In this mode qmake interprets files as files to
                 be built,
                 defaults to *.c; *.ui; *.y; *.l; *.ts; *.xlf; *.qrc; *.h; *.hpp; *.hh; *.hxx; *.H; *.cpp; *.cc; *.cxx; *.C
                 Note: The created .pro file probably will
                 need to be edited. For example add the QT variable to
                 specify what modules are required.
  -makefile      Put qmake into makefile generation mode (default)
                 In this mode qmake interprets files as project files to
                 be processed, if skipped qmake will try to find a project
                 file in your current working directory

Warnings Options:
  -Wnone         Turn off all warnings; specific ones may be re-enabled by
                 later -W options
  -Wall          Turn on all warnings
  -Wparser       Turn on parser warnings
  -Wlogic        Turn on logic warnings (on by default)
  -Wdeprecated   Turn on deprecation warnings (on by default)

Options:
   * You can place any variable assignment in options and it will be     *
   * processed as if it was in [files]. These assignments will be parsed *
   * before [files].                                                     *
  -o file        Write output to file
  -d             Increase debug level
  -t templ       Overrides TEMPLATE as templ
  -tp prefix     Overrides TEMPLATE so that prefix is prefixed into the value
  -help          This help
  -v             Version information
  -after         All variable assignments after this will be
                 parsed after [files]
  -norecursive   Don't do a recursive search
  -recursive     Do a recursive search
  -set <prop> <value> Set persistent property
  -unset <prop>  Unset persistent property
  -query <prop>  Query persistent property. Show all if <prop> is empty.
  -cache file    Use file as cache           [makefile mode only]
  -spec spec     Use spec as QMAKESPEC       [makefile mode only]
  -nocache       Don't use a cache file      [makefile mode only]
  -nodepend      Don't generate dependencies [makefile mode only]
  -nomoc         Don't generate moc targets  [makefile mode only]
  -nopwd         Don't look for files in pwd [project mode only]


what should I do now?!
emab
 
Posts: 5
Joined: Sun Apr 21, 2013 4:52 am

Re: Installation Error in CentOS

Postby Tvangeste » Wed Apr 24, 2013 6:12 am

Enter the goldendict's sources folder, type qmake, press Enter, then type make. If all the dependencies are met, the build should succeed.
Tvangeste
 
Posts: 893
Joined: Thu Jun 02, 2011 11:42 am

Re: Installation Error in CentOS

Postby emab » Wed Apr 24, 2013 6:41 am

Oh... god... I just pressed 'make' and done!
I guess I just needed to install qt-4.8 and then everything was ok.
how can I mark this thread as solved?
emab
 
Posts: 5
Joined: Sun Apr 21, 2013 4:52 am

Re: Installation Error in CentOS

Postby Tvangeste » Wed Apr 24, 2013 6:53 am

No need to mark anything. Glad that it all worked out for you though! :) Welcome to the club!
Tvangeste
 
Posts: 893
Joined: Thu Jun 02, 2011 11:42 am


Return to General

Who is online

Users browsing this forum: No registered users and 84 guests