Solved QT make install issue

Hi,
I'm trying to install QT tools for C++ development, I've FreeBSD 10.2 on AMD64, with make install on port devel/qt5 I've issue: my database (MySQL) are locked by another user!
This is my output:
Code:
gmake[5]: Leaving directory '/usr/ports/multimedia/gstreamer-plugins-bad/work/gst-plugins-bad-0.10.23/po'
====> Compressing man pages (compress-man)
===>  Installing for gstreamer-plugins-bad-0.10.23_2,3
===>  Checking if gstreamer-plugins-bad already installed
===>  Registering installation for gstreamer-plugins-bad-0.10.23_2,3 as automatic
pkg-static: Cannot get an exclusive lock on a database, it is locked by another process
*** Error code 75

Stop.
make[4]: stopped in /usr/ports/multimedia/gstreamer-plugins-bad
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/multimedia/qt5-multimedia
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/multimedia/qt5-multimedia
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/qt5
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/qt5
You have new mail.
root@dct-pluton:/usr/ports/devel/qt5 #
How can I get around this issue?

Regards
Philippe
 
Last edited by a moderator:
Do you have another process that is accessing the DB?

What is your output for the following?

Code:
fstat /var/db/pkg/local.sqlite

Trying to update a DB table that has been exclusively locked will create a deadlock that will prevent another update to that table until the other process has finished and released the lock.
 
This is not the mysql database that is locked. What is locked is the package database which is needed to register the package as installed. A different thing. Maybe you have some shell around where you have a pkg tool running with it's output in less or such, blocking the package database. Or cron is currently doing something there. In that case simply retry your action now. Tools to help here would be sysutils/lsof and sysutils/pstree. If nothing shows up, maybe you need to log out and come back. A reboot should not be required.
 
Hi,
I've another quad cores but it's Intel not AMD64, I want to install QT5, but I've issue:
this is my output:
Code:
Note: Recompile with -Xlint:unchecked for details.
env CLASSPATH="./classes" /usr/local/openjdk8/bin/java -classpath ./classes \
  com.sleepycat.persist.model.ClassEnhancer ./classes
java.lang.IllegalArgumentException
   at com.sleepycat.asm.ClassReader.<init>(ClassReader.java:167)
   at com.sleepycat.asm.ClassReader.<init>(ClassReader.java:153)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceBytes(ClassEnhancer.java:297)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:246)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
   at com.sleepycat.persist.model.ClassEnhancer.main(ClassEnhancer.java:108)
Exception in thread "main" java.lang.IllegalArgumentException
   at com.sleepycat.asm.ClassReader.<init>(ClassReader.java:167)
   at com.sleepycat.asm.ClassReader.<init>(ClassReader.java:153)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceBytes(ClassEnhancer.java:297)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:246)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
   at com.sleepycat.persist.model.ClassEnhancer.main(ClassEnhancer.java:108)
Makefile:973: recipe for target 'db.jar' failed
gmake[14]: *** [db.jar] Error 1
gmake[14]: Leaving directory '/usr/ports/databases/db5/work/db-5.3.28/build_unix'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[13]: stopped in /usr/ports/databases/db5
*** Error code 1

Stop.
make[12]: stopped in /usr/ports/databases/db5
*** Error code 1

Stop.
make[11]: stopped in /usr/ports/databases/db5
*** Error code 1

Stop.
make[10]: stopped in /usr/ports/audio/jack
*** Error code 1

Stop.
make[9]: stopped in /usr/ports/audio/jack
*** Error code 1

Stop.
make[8]: stopped in /usr/ports/audio/jack
*** Error code 1

Stop.
make[7]: stopped in /usr/ports/audio/pulseaudio
*** Error code 1

Stop.
make[6]: stopped in /usr/ports/audio/pulseaudio
*** Error code 1

Stop.
make[5]: stopped in /usr/ports/audio/pulseaudio
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/multimedia/qt5-multimedia
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/multimedia/qt5-multimedia
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/multimedia/qt5-multimedia
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/qt5
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/qt5
root@dct-antilope:/usr/ports/devel/qt5 #


When I go to the ports databases/db5 I've a same issue and I think it's about database are locked, there are objet 'db.jar' failed yet

this is the output :
Code:
  at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
   at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
   at com.sleepycat.persist.model.ClassEnhancer.main(ClassEnhancer.java:108)
Makefile:973: recipe for target 'db.jar' failed
gmake[3]: *** [db.jar] Error 1
gmake[3]: Leaving directory '/usr/ports/databases/db5/work/db-5.3.28/build_unix'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/databases/db5
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/databases/db5
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/db5
root@dct-antilope:/usr/ports/databases/db5 #


I've set MAKE_JOBS_UNSAFE=yes into file make.conf
How can I get around this issue?

PS: For all programs I've a same issue, since change computer Intel XEON ! ! !

Regards
Philippe
 
Last edited by a moderator:
Don't enable options if you don't know what they do.
Code:
     CRYPTO=on: Cryptography support
     DOCS=on: Build and/or install documentation
     JAVA=off: Java platform support
     L10N=off: Localization support (EXPERIMENTAL)
     SQL=off: Enable SQL API (EXPERIMENTAL)
 
whitch file can i do for deactivate option ?


Don't enable options if you don't know what they do.
Code:
     CRYPTO=on: Cryptography support
     DOCS=on: Build and/or install documentation
     JAVA=off: Java platform support
     L10N=off: Localization support (EXPERIMENTAL)
     SQL=off: Enable SQL API (EXPERIMENTAL)
 
cd /usr/ports/databases/db5 && make rmconfig

Only enable options if you understand the consequences.
 
I've do your recommendations but there are still a same error
May be i would to use 10.2 version of operating system because 10.3 use here are not release !

this is my output :
Code:
    at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
    at com.sleepycat.persist.model.ClassEnhancer.enhanceFile(ClassEnhancer.java:242)
    at com.sleepycat.persist.model.ClassEnhancer.main(ClassEnhancer.java:108)
Makefile:973: recipe for target 'db.jar' failed
gmake[3]: *** [db.jar] Error 1
gmake[3]: Leaving directory '/usr/ports/databases/db5/work/db-5.3.28/build_unix'
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/databases/db5
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/databases/db5
*** Error code 1

Stop.
make: stopped in /usr/ports/databases/db5
root@dct-antilope:/usr/ports/databases/db5 #

cd /usr/ports/databases/db5 && make rmconfig

Only enable options if you understand the consequences.
 
May be i would to use 10.2 version of operating system because 10.3 use here are not release !
FreeBSD 10.3 has been released. Besides that, it won't make a difference. All versions of FreeBSD use the exact same ports tree.

I'm wondering why it's using Java though. There's no reason it should. It would only use Java to build if you enabled the JAVA option.
 
Hi,
I've resolve my issue , i've re-install FreeBSD 10.2 and all programs work fine, QT5 are avaible on my computers.
I think that FreeBSD 10.3 is to recent and is like a young operating system !

Regards
Philippe
 
I've resolve my issue , i've re-install FreeBSD 10.2 and all programs work fine, QT5 are avaible on my computers.
I think that FreeBSD 10.3 is to recent and is like a young operating system !

FreeBSD 10.3 has been released. Besides that, it won't make a difference. All versions of FreeBSD use the exact same ports tree.

This. Really, although it's not hard to imagine that reinstalling from scratch solved your problem, the problem definitely wasn't 10.3 -- ports are the same, no matter what.
 
Back
Top