Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Dependencies of packages

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
madurani
n00b
n00b
Posts: 57
Joined: Wed Mar 08, 2017 8:10 am

Dependencies of packages

  • Quote

Post by madurani » Tue Jan 23, 2018 12:03 pm

Hello All,

The firs question:
How can I find out, that which package from /var/lib/portage/world pulled installation of some installed package which missing in world file?
For example I have installed MariaDB and it missing in /var/lib/portage/world. I want known via which package it was installed.

The second question:
I tried manually compile mysql(not via emerge) and make crashed on missing command rpcgen. This binary file in Oracle-Linux is reachable via packade glibc-common.rpm, but in gentoo I don't know find it. Do you have some idea how I can install rpcgen in gentoo?

Code: Select all

 [ 57%] Generating xdr_gen/xcom_vp.h, xdr_gen/xcom_vp_xdr.c, xdr_gen/xcom_vp_platform.h
/bin/sh: rpcgen: príkaz nenájdený
make[2]: *** [rapid/plugin/group_replication/CMakeFiles/group_replication.dir/build.make:70: rapid/plugin/group_replication/xdr_gen/xcom_vp.h] Error 127
make[1]: *** [CMakeFiles/Makefile2:5644: rapid/plugin/group_replication/CMakeFiles/group_replication.dir/all] Error 2
Top
Dr.Willy
Guru
Guru
Posts: 547
Joined: Sun Jul 15, 2007 5:13 pm
Location: NRW, Germany

Re: Dependencies of packages

  • Quote

Post by Dr.Willy » Tue Jan 23, 2018 1:03 pm

madurani wrote:How can I find out, that which package from /var/lib/portage/world pulled installation of some installed package which missing in world file?
For example I have installed MariaDB and it missing in /var/lib/portage/world. I want known via which package it was installed.
You can use app-portage/gentoolkit

Code: Select all

equery d mariadb
madurani wrote:I tried manually compile mysql(not via emerge) and make crashed on missing command rpcgen. This binary file in Oracle-Linux is reachable via packade glibc-common.rpm, but in gentoo I don't know find it. Do you have some idea how I can install rpcgen in gentoo?
rpcgen should be part of glibc, which I am pretty sure you have installed :-)
Top
madurani
n00b
n00b
Posts: 57
Joined: Wed Mar 08, 2017 8:10 am

Re: Dependencies of packages

  • Quote

Post by madurani » Tue Jan 23, 2018 1:12 pm

Hello All,

Yes, glibc is installed :D , but command rpcgen missing :( :

Code: Select all

argo ~ # emerge -av glibc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-libs/glibc-2.26-r5:2.2::gentoo  USE="(multilib) -audit -caps -debug -doc -gd (-hardened) -headers-only -nscd -profile (-selinux) -suid -systemtap (-vanilla)" 0 KiB

Code: Select all

argo ~ # find / | grep -i rpcgen
/usr/bin/event_rpcgen.py
/usr/share/vim/vim80/syntax/rpcgen.vim
/usr/lib64/python2.7/site-packages/SCons/Tool/rpcgen.pyo
/usr/lib64/python2.7/site-packages/SCons/Tool/rpcgen.pyc
/usr/lib64/python2.7/site-packages/SCons/Tool/rpcgen.py
/svc/src/mysql-5.7.21/libevent/event_rpcgen.py
/svc/src/mysql-5.7.21/rapid/plugin/group_replication/rpcgen.cmake
Top
John R. Graham
Administrator
Administrator
User avatar
Posts: 10898
Joined: Tue Mar 08, 2005 3:39 pm
Location: Somewhere over Winder, Georgia, USA

  • Quote

Post by John R. Graham » Tue Jan 23, 2018 2:08 pm

Code: Select all

 ~ # emerge -1vp glibc

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-libs/glibc-2.25-r9:2.2::gentoo  USE="-audit -caps (-crosscompile_opts_headers-only%) -debug -gd (-hardened) -headers-only% (-multilib) -nscd -profile rpc (-selinux) -suid -systemtap (-vanilla)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
~ # which rpcgen
/usr/bin/rpcgen
Might be time to re-emerge glibc with the above command (minus the -p).

Also, why do you feel the need to manually build mysql?

- John
I can confirm that I have received between 0 and 499 National Security Letters.
Top
madurani
n00b
n00b
Posts: 57
Joined: Wed Mar 08, 2017 8:10 am

  • Quote

Post by madurani » Tue Jan 23, 2018 2:31 pm

Glibc from your Gentoo is in version 2.25 and USE flag rpc exist there, but in my case is version 2.26 and rpc flag missing.
I tried downgrade it to some older version. Rpc flag there exist, but there is big dependencies affect to other packages
Top
madurani
n00b
n00b
Posts: 57
Joined: Wed Mar 08, 2017 8:10 am

  • Quote

Post by madurani » Tue Jan 23, 2018 6:11 pm

I want install mysql or mariadb to other location. Manual compilation of mysql still crashed. Is some possibility to install via emerge mariadb to other as default location? I need to change flag -DCMAKE_INSTALL_PREFIX=/usr to some other location.
Top
madurani
n00b
n00b
Posts: 57
Joined: Wed Mar 08, 2017 8:10 am

  • Quote

Post by madurani » Tue Jan 23, 2018 8:25 pm

I downloaded mariaDB source and a manual compilation finish success.
Top
ct85711
Veteran
Veteran
Posts: 1791
Joined: Tue Sep 27, 2005 8:54 pm

  • Quote

Post by ct85711 » Tue Jan 23, 2018 10:39 pm

Ok, to clear this up on rpc wise; glibc-2.26 and later does NOT provide rpc anymore, earlier versions still provide it...

For more information, here's the dev's message thread about this
https://archives.gentoo.org/gentoo-dev/ ... 4daf2c7ce8
(glibc-rpc) - [TRACKER] Packages failing to build with no rpc in sys-libs/glibc

In short, we need to install a library that provides the rpc, in the message thread, it recommends net-libs/libtirpc. Now it also mentions net-libs/rpcsvc-proto may also be needed, but for me only libtirpc was pulled in for sure. For me, I did install rpcsvc-proto in case anyways, so I don't have an issue.

Note: From what I saw doing a search, rpc was discountinued from glibc 2.14, but Gentoo provided a workaround til now...
https://blog.flameeyes.eu/2011/08/again ... -software/
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Jan 24, 2018 2:41 am

madurani wrote:I want install mysql or mariadb to other location.
Why do you need to install it to an unusual location? What problem are you trying to solve by doing this?
Top
madurani
n00b
n00b
Posts: 57
Joined: Wed Mar 08, 2017 8:10 am

  • Quote

Post by madurani » Wed Jan 24, 2018 7:18 pm

I want install/compile Apache+PHP+MyPhpAdmin+MySQL+Java+Eclipse+Javafx_scenebuilder+Mysql-connector to some isolate volume. In my case to /svc/opt.
I know, that most of mentioned packages are reachable via emerge, but in this case will installed to path as /usr, /opt or some other(will be lost in system). And when will be in portage new version so will be upgraded.
I want mentioned applications undepended on OS.
Top
madurani
n00b
n00b
Posts: 57
Joined: Wed Mar 08, 2017 8:10 am

  • Quote

Post by madurani » Wed Jan 24, 2018 7:26 pm

ct85711 wrote:Ok, to clear this up on rpc wise; glibc-2.26 and later does NOT provide rpc anymore, earlier versions still provide it...

For more information, here's the dev's message thread about this
https://archives.gentoo.org/gentoo-dev/ ... 4daf2c7ce8
(glibc-rpc) - [TRACKER] Packages failing to build with no rpc in sys-libs/glibc

In short, we need to install a library that provides the rpc, in the message thread, it recommends net-libs/libtirpc. Now it also mentions net-libs/rpcsvc-proto may also be needed, but for me only libtirpc was pulled in for sure. For me, I did install rpcsvc-proto in case anyways, so I don't have an issue.

Note: From what I saw doing a search, rpc was discountinued from glibc 2.14, but Gentoo provided a workaround til now...
https://blog.flameeyes.eu/2011/08/again ... -software/
I installed both of packages, but make don't know find one file rpc/rpc.h. This file is included in:

net-libs/libtirpc-1.0.2-r1 (/usr/include/tirpc/rpc/rpc.h)

Can I add path to mentioned file to some variable which is use during compilation?

Code: Select all

[ 57%] Running C++ protocol buffer compiler (lite) on /svc/src/mysql-5.7.21/rapid/plugin/x/protocol/mysqlx_session.proto
/svc/src/mysql-5.7.21/rapid/plugin/group_replication/libmysqlgcs/src/bindings/xcom/xcom/pax_msg.c:16:10: fatal error: rpc/rpc.h: No such file or directory
 #include <rpc/rpc.h>
          ^~~~~~~~~~~
compilation terminated.
Top
madurani
n00b
n00b
Posts: 57
Joined: Wed Mar 08, 2017 8:10 am

  • Quote

Post by madurani » Wed Jan 24, 2018 9:20 pm

ct85711 wrote:Ok, to clear this up on rpc wise; glibc-2.26 and later does NOT provide rpc anymore, earlier versions still provide it...

For more information, here's the dev's message thread about this
https://archives.gentoo.org/gentoo-dev/ ... 4daf2c7ce8
(glibc-rpc) - [TRACKER] Packages failing to build with no rpc in sys-libs/glibc

In short, we need to install a library that provides the rpc, in the message thread, it recommends net-libs/libtirpc. Now it also mentions net-libs/rpcsvc-proto may also be needed, but for me only libtirpc was pulled in for sure. For me, I did install rpcsvc-proto in case anyways, so I don't have an issue.

Note: From what I saw doing a search, rpc was discountinued from glibc 2.14, but Gentoo provided a workaround til now...
https://blog.flameeyes.eu/2011/08/again ... -software/
Probably I found some solution with GLIBC-RPC issue, but not look very good :?
I did some change in folder /usr/include:
1: I renamed existed empty folder rpc to rpc1
2: then I created some symbolic link as:

Code: Select all

argo /usr/include # ls -la | grep rpc
lrwxrwxrwx   1 root root     30 Jan 24 21:45 netconfig.h -> /usr/include/tirpc/netconfig.h
lrwxrwxrwx   1 root root     22 Jan 24 21:48 rpc -> /usr/include/tirpc/rpc
drwxr-xr-x   2 root root   4096 Jan 24 21:47 rpc1

argo /usr/include/rpc
netdb.h -> /usr/include/netdb.h
Now compilation of mysql continue. I hope that finis properly.

Manual compilation of last stable MySQL-5.7.21 finish success :D :D :D

Look that work fine:

Code: Select all

argo /svc/opt/mysql # netstat -tulpne | grep 3306
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      1000       628420     3663/mysqld         
argo /svc/opt/mysql # ps -efa | grep mysql
root      3204     1  0 22:39 pts/1    00:00:00 /bin/sh /svc/opt/mysql-5.7.21/bin/mysqld_safe --datadir=/svc/opt/mysql-5.7.21/data --pid-file=/svc/opt/mysql-5.7.21/data/argo.pid
madurani  3663  3204  0 22:39 pts/1    00:00:00 /svc/opt/mysql-5.7.21/bin/mysqld --basedir=/svc/opt/mysql-5.7.21 --datadir=/svc/opt/mysql-5.7.21/data --plugin-dir=/svc/opt/mysql-5.7.21/lib/plugin --user=madurani --log-error=/svc/opt/mysql/log/mysqld.log --pid-file=/svc/opt/mysql-5.7.21/data/argo.pid --socket=/svc/opt/mysql/tmp/mysql.sock --port=3306
Marek
Top
madurani
n00b
n00b
Posts: 57
Joined: Wed Mar 08, 2017 8:10 am

  • Quote

Post by madurani » Thu Jan 25, 2018 11:28 am

Next topic: manual compilation of PHP with MySQL dependencies

There is one flag:
--with-mysqli=/svc/opt/mysql/bin/mysql_config'
When I compile PHP with it, then is there problem with library mysqlclient_r in MySQL(not exist). It missing in new MySQL release 5.7.x. Older release as 5.6.x and 5.5.x have include it and there isn't any problem.
When I use this flag without path to mysql_config only as " --with-mysqli", then compilation finish successfully. And it looks, that PHP+Apache+phpMyAdmin works fine. I can via phpMyAdmin join to DB and manage it.

Question:

1:Does anybody knows, whether exists some config flag in MySQL for building this library, or it is some additional source code to MySQL for building it?

2: Is there any difference in functionality of PHP, when build is with "--with-mysqli=/svc/opt/mysql/bin/mysql_config" or only with "--with-mysqli"?

I need to upgrade(manually compiled) MySQL to higher version(because of vulnerability issue), but I can't switch to 5.7.x version of MySQL, because PHP and dependence of missing library:

Code: Select all

lrwxrwxrwx  1 root root      18 Jan 25 12:20 libmysqlclient_r.a -> libmariadbclient.a
lrwxrwxrwx  1 root root      13 Jan 25 12:20 libmysqlclient_r.so -> libmariadb.so
Marek
Top
Post Reply

13 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic