184e8
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi!
FreeBSD on my machine is: FreeBSD 8.0-RELEASE-p3 Its completely updated with freebsd-update and ports updated with portsnap update. I tried to install kde4 (through ports) and got following errors during make: Code:
libiodbc-3.52.7 conflicts with installed package(s):
unixODBC-2.3.0
Now, Should I remove the said package. But will it not make installed packaged dependent on it unstable. Or is there any other way. Kindly help me on this issues as I am getting same problem while installing many other ports too. Should I go ahead and remove conflict packages in such cases. Thanks in advance. |
|
#2
|
||||
|
||||
|
Hi,
I had the same issue on FreeBSD 8.0 installing GNOME, then KDE4. Here the fix and how to solve this kind of issues: (1) We need a general understanding of the problem. A google search on unixodbc and libiodbc explains its two drivers doing the same job, on a rather compatible way. (2) We need a local understanding of the problem, ie here "what port uses this unixODBC?". To get the answer, pkg_delete unixODBC-2.3.0 (pkg_delete won't delete anything used by other packages). It gives a list of the packages using the library. On my computer, it were: Code:
scherzo# pkg_delete unixODBC-2.3.0 pkg_delete: package 'unixODBC-2.3.0' is required by these other packages and may not be deinstalled: ekiga3-3.2.6_5 gnome2-2.30.1_1 opal3-3.6.6_6 ptlib-2.6.5_2 We can safely ignore gnome2, as it's a metaport. The result give us ekiga3 depends of opal3, which depends of ptlib. Code:
cd /usr/ports/devel/ptlib make config Let's read the Makefile. Er... there is a --disable-odbc enabled. Something is wrong, oh it conflicts with ptlib26, it's one of those multiversions ports! Bye ptlib, a ls ../ptlib* tells us the correct package name is devel/ptlib26. Let's retry make config. Oh! An option to disable ODBC support. (3) We need to apply the solution/fix/workaround/kludge found: Code:
cd /usr/ports/devel/ptlib26 make deinstall clean make config #and we disable Use ODBC this time make reinstall clean Code:
cd /usr/ports/devel/ptlib26 make deinstall clean make config #and we disable Use ODBC this time make reinstall clean Code:
scherzo# cd /usr/ports/databases/unixODBC scherzo# make deinstall ===> Deinstalling for databases/unixODBC ===> Deinstalling unixODBC-2.3.0 pkg_delete: package 'unixODBC-2.3.0' is required by these other packages and may not be deinstalled (but I'll delete it anyway): ekiga3-3.2.6_5 gnome2-2.30.1_1 opal3-3.6.6_6 So this time, ptlib dependency have disappeared and unixODBC is deinstalled. A (now erroneous) dependency still exists between ports built against ptlib. To fix that, there is a tool called ''pkgdb''. Invoke it with the -F (short for --fix) options: Code:
scherzo# pkgdb -F ---> Checking the package registry database [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 808 packages found ( -2 +41) (...)......................................... done] Stale dependency: ekiga3-3.2.6_5 -> unixODBC-2.3.0 (databases/unixODBC): -> Deleted. (irrelevant) Stale dependency: gnome2-2.30.1_1 -> unixODBC-2.3.0 (databases/unixODBC): -> Deleted. (irrelevant) Stale dependency: opal3-3.6.6_6 -> unixODBC-2.3.0 (databases/unixODBC): -> Deleted. (irrelevant) We can now resume our KDE compilation. It should resume with the libiodbc installation. |
| The Following 9 Users Say Thank You to Dereckson For This Useful Post: | ||
chrisstankevitz (July 2nd, 2010), dbi (October 9th, 2010), dheerajsuthar (June 21st, 2010), ericjansen (February 4th, 2011), ikbendeman (October 2nd, 2010), jeraymond (January 6th, 2011), Miax (October 24th, 2010), mky (April 14th, 2011), tobe (August 1st, 2011) | ||
|
#3
|
|||
|
|||
|
Thanks will try that on my system.I really appreciate you kind detailed reply.
|
|
#4
|
|||
|
|||
|
Quote:
Chris |
|
#5
|
||||
|
||||
|
Quote:
Code:
$ man pkg_info | egrep -A 1 '\-R'
-R For each of the specified packages, show the list of installed
packages which require it.
pkg_info -R unixODBC-2.3.0
Last edited by DutchDaemon; July 3rd, 2010 at 16:54. |
|
#6
|
||||
|
||||
|
I don't think ekiga will build correctly without unixODBC, which is a problem since it's part of x11/gnome2. How hard would it be to configure devel/ptlib26 to build against databases/libiodbc instead of databases/unixODBC? I mean, they're supposed to be compatible from what I understand...
Last edited by DutchDaemon; October 7th, 2010 at 00:01. Reason: [port] tags are fun |
|
#7
|
||||
|
||||
|
I got it to work! I edited /usr/local/ports/devel/ptlib26/Makefile and changed the following section:
Code:
line 53 | .if defined(WITH_ODBC)
line 54 | CONFIGURE_ARGS+= --enable-odbc
line 55 | LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
line 56 | .esle
line 57 | CONFIGURE_ARGS+= --disable-odbc
Code:
line 53 | .if defined(WITH_ODBC)
line 54 | CONFIGURE_ARGS+= --enable-odbc
line 55 | LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc
line 56 | .else
line 57 | CONFIGURE_ARGS+= --disable-odbc
line 58 | .endif
Last edited by DutchDaemon; October 6th, 2010 at 23:59. |
|
#8
|
|||
|
|||
|
Any idea how to solve for a "package only" based system?
/usr/ports doesn't even exist on this machine. I'd like to keep it this way until time permits to upgrade to stable. In my case, I have kde4 installed first, now I'm trying to get gnome2 installed. I'm on a fresh 8.1-Release system (amd64), installed from dvd iso found via FreeBSD torrents. I'm only using e.g. pkg_add -r gnome2 (as there are a few people who want to use gnome instead of kde4.)
Last edited by DutchDaemon; December 13th, 2010 at 03:28. |
|
#9
|
||||
|
||||
|
Make the modifications on a system with ports and build a package... The net result of packages is that you can't change them, they're binaries.
Quote:
|
|
#10
|
|||
|
|||
|
Quote:
As binaries, I'd (foolishly) expected the packages for -Release to just work together and keep out of each others way. If I had time, I'd just make 'em all via portupgrade.... I don't have time right now. This is also my first 64bit machine (at home anyway) so any packages I built from ports on one of the other 32bit systems would only be 32bit. I hoped the 64bit versions were pre-built, it would same me the effort until time permits and/or I really needed "make config" to change things to my specific needs. I guess for now, the gnome users are stuck with kde or just a shell lol Thanks for your suggestion |
|
#11
|
||||
|
||||
|
(i) Compilation isn't so problematic : you can use another desktop environment during the few hours to 3 days needed to compile all, your system stays responsive, there are still free RAM.
(ii) Fresh FreeBSD install + pkg_add -r gnome2 just works, the problem in this topic only concerns dual KDE/Gnome installations. (iii) You can start the install from packages, then compile the problematic port, then resume the install from packages. So you'll only have ONE port and its dependencies not yet installed through packages to compile. I'll be happy to assist you in the process. (iv) You can put the ports where you want: /home/bostondriver/ports, /tmp/ports are maybe some interesting locations outside your /usr partition. (v) You can use and upgrade -STABLE with a /usr/ports folder, freebsd-update doesn't touch this folder.
__________________
“It's only after we've lost everything that we're free to do anything.”, Tyler Durden in Fight Club. Ports I maintain: astro/astrometry, editors/komodo-ide, devel/p5-ReadLine-TTYtter, french/verbiste, www/woof, graphics/commons-utilities, net-p2p/ctcs, print/lgrind and textproc/p5-Text-CSV-Encoded. |
|
#12
|
|||
|
|||
|
Quote:
I actually added kde4 via sysinstall. I hit this gnome2/kde4 co-exist problem when also trying to use sysinstall. My attempt to add gnome2 came after the install install of kde and after some people complained that kde (via tightvnc) wasn't "working" as they are used to. (This is something I'm looking into, but out of scope of this thread.) So gnome was installed, or I tried to. Since prior posts, I used pkg_add -r gnome2 (not sysinstall) to see what happens. The problem in this thread still exists, but at least pkg_add didn't stop. "Enough" of gnome2 exists where gnome can be used (and does behave a lot better under vnc than kde.) We also have FreeBSD 8.1 running as a KVM guest, and there kde4 via tightvnc is awful! (Other vnc packages will be tried shortly.) Moving to gnome2 works far better, and users want to standardize on one, so I need gnome on this machine... at least until I can get kde to behave. |
![]() |
| Tags |
| freebsd 8, kde4, unixodbc |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Installation of php5-imap for PHP 5.3.2 fails | henrywood | Installation and Maintenance of FreeBSD Ports or Packages | 2 | April 15th, 2010 23:24 |
| KDE4.2 installation problem | eugene210682 | Installation and Maintenance of FreeBSD Ports or Packages | 3 | February 15th, 2010 08:35 |
| [Solved] FreeBSD 7.2 print/ghostscript8 installation fails | lungten | Installation and Maintenance of FreeBSD Ports or Packages | 18 | June 12th, 2009 11:46 |
| apache installation fails httpd-2.2.11 error | Hizzle | Installation and Maintenance of FreeBSD Ports or Packages | 4 | January 23rd, 2009 13:58 |
| Brand New Installation of FreeBSD 7.1 fails | kalavo | Installing & Upgrading | 2 | January 21st, 2009 18:04 |