Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lrelease: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lrelease': No such file or directory #85

Closed
fsfarah opened this issue Jan 23, 2015 · 14 comments

Comments

@fsfarah
Copy link

fsfarah commented Jan 23, 2015

I got the following error during make
lrelease: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lrelease': No such file or directory

I'm using Ubuntu 14.04 Dekstop

@fluxer
Copy link
Collaborator

fluxer commented Jan 23, 2015

That would be a problem with the Qt4 packages I guess. Try re-installing them, I think lrelease was part of qt4-tools or something like that.

@fsfarah
Copy link
Author

fsfarah commented Jan 24, 2015

Do you mean qt4-dev-tools? that's another 100MB of archives, doesn't sound
very convenient for a relatively small app, is there any alternative?
Thanks
On Fri, Jan 23, 2015 at 5:49 PM, Ivailo Monev [email protected]
wrote:

That would be a problem with the Qt4 packages I guess. Try re-installing
them, I think lrelease was part of qt4-tools or something like that.

Reply to this email directly or view it on GitHub
#85 (comment)
.

@fluxer
Copy link
Collaborator

fluxer commented Jan 24, 2015

Yes, that should be it. And there is no alternative as far as I know. You can however trick the build system that lrelease is present:

make LRELEASE=true

But the application will not be translated.

@fluxer
Copy link
Collaborator

fluxer commented Jan 24, 2015

Since this is now related to Customizer per-se I mark this issue as invalid. I will leave the issue open in case someone wants to enhance the build system and make the translations optional. The pending label will be removed once the reporter gets this sorted out.

@fsfarah
Copy link
Author

fsfarah commented Jan 25, 2015

Ok,

I tried make with LRELEASE=true
make install gave this error:
install: cannot stat 'tr/*.qm': No such file or directory make: *** [install-gui] Error 1

On Sun, Jan 25, 2015 at 12:59 AM, Ivailo Monev [email protected]
wrote:

Since this is now related to Customizer per-se I mark this issue as
invalid. I will leave the issue open in case someone wants to enhance the
build system and make the translations optional.

Reply to this email directly or view it on GitHub
#85 (comment)
.

@fluxer
Copy link
Collaborator

fluxer commented Jan 25, 2015

make LRELEASE=true
touch tr/fake.qm
sudo make install

@ghost ghost mentioned this issue Feb 2, 2015
@ghost
Copy link

ghost commented Feb 3, 2015

I am running 14.04 32 bit host system and also encountered same issue.

Even @fsfarah mentioned that qt4-dev-tools requires more than 100 MB of installation, not really true from my findings.

The lrelease program is handled by qt4-linguist-tools package. The former package may not be required, although I did install without recommended packages.

To summarize, below is my installation log (with details removed):

$ sudo apt-get install qt4-dev-tools --no-install-recommends
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libqt4-sql-sqlite
Suggested packages:
  libqt4-dev qt4-doc-html
Recommended packages:
  qt4-designer qt4-doc
The following NEW packages will be installed:
  libqt4-sql-sqlite qt4-dev-tools
0 upgraded, 2 newly installed, 0 to remove and 358 not upgraded.
Need to get 3,871 kB of archives.
After this operation, 8,864 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
...

At this point, the issue is still happening. So I proceeded to install the subsequent package.

$ sudo apt-get install qt4-linguist-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  qt4-linguist-tools
0 upgraded, 1 newly installed, 0 to remove and 358 not upgraded.
Need to get 827 kB of archives.
After this operation, 2,792 kB of additional disk space will be used.
...

So, total install package is about 11 MB or less. And it fixed this issue for good.

P.S.: The install size above is applicable to users on freshly installed Xubuntu 14.04 32 bit. Unless --no-install-recommends option is specified, install packages will be more than 100 MB in size.

@fluxer
Copy link
Collaborator

fluxer commented Feb 3, 2015

@clearkimura
The size of the packages to be installed will be different for most setups depnding on what is currently installed. For an example, if someone is prefering GTK+ over Qt applications he will, most likely, not have all Qt libraries installed and having the developer tools would be even more rare.

@loggerJK
Copy link

@clearkimura
Thank you!!!!
I solved my problem!!!

@CapacitorSet
Copy link

If anyone came across this thread while googling the error message: the correct package for this is qt4-linguist-tools.

@gautamsreekumar
Copy link

@CapacitorSet i don't think that is the correct package. i got the same issue with GNU Octave and that did not resolve the issue.

@phoenix-programmer
Copy link

phoenix-programmer commented Mar 27, 2018

Just came here trying to compile another project and getting that message.
lrelease: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lrelease': No such file or directory

As I have qt5 I thought that by creating a symlink to /usr/lib/x86_64-linux-gnu/qt5/bin/lrelease it should work:
sudo ln -s /usr/lib/x86_64-linux-gnu/qt5/bin/lrelease /usr/lib/x86_64-linux-gnu/qt4/bin/lrelease

and it worked, and it was good, and everybody was happy and caring about each other, and shared cannabis with those who liked and lived without authorities, without private properties and without mercantilism.

@kamilion
Copy link
Owner

@diego1977 You should really be using make PYTHON=python3 PYQT=5; sudo make install or make PYTHON=python3 PYQT=5 deb instead of hacking around it with symlinks.

@miroi
Copy link

miroi commented May 22, 2018

I came around this issue as I have something similar

lconvert: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/lconvert': No such file or directory

although the package is installed...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants