• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

adymo/homebrew-kde: Homebrew tap with some KDE packages. For now contains KDevel ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

adymo/homebrew-kde

开源软件地址:

https://github.com/adymo/homebrew-kde

开源编程语言:

Ruby 100.0%

开源软件介绍:

Alexander Dymo's Homebrew

Homebrew tap to build KDE 4 apps on Mac OS. Based on https://github.com/somekool/homebrew but actually works. Note, this is not a full KDE distribution. It contains only KDE apps that this project's maintainers actually use.

Available stable apps:

  • KDevelop
  • Kate
  • Konversation
  • Massif Visualizer

If you'd like to try KDE 5 versions, try Harald Fernengel's tap: https://github.com/haraldF/homebrew-kf5

Installation

Prepare your environment:

  • Append these codes to your ~/.bash_profile or ~/.profile:
export KDEDIRS=$KDEDIRS:$HOME/Library/Preferences/KDE:/usr/local/kde4
export PATH=/usr/local/kde4/bin:$PATH
export DYLD_LIBRARY_PATH=/usr/local/kde4/lib:$DYLD_LIBRARY_PATH
launchctl setenv DYLD_LIBRARY_PATH /usr/local/kde4/lib:$DYLD_LIBRARY_PATH
export XDG_DATA_HOME=$HOME/Library/Preferences/KDE/share
export XDG_DATA_DIRS=/usr/local/kde4/share:/usr/local/share:/usr/share
  • If you were using this tap before Feb 17, 2014, kde stuff were installed to /usr/local and you cannot uninstall them. Which means your /usr/local is already messed up. Please backup everything important, sudo rm -rf /usr/local/*, reinstall homebrew and all your formulas, and anything else you put under /usr/local.
  • Now kde stuff are installed to /usr/local/kde4, you still cannot uninstall single kde formula, but you can safely nuke that directory and reinstall kde formulas you want to keep.
  • We're working on a solution to make kde formulas install to their own kegs.

Tap my KDE repository:

brew tap adymo/kde

Compile Qt with D-Bus and Qt3 support. KDE will not work without that.

brew uninstall qt
brew install qt --with-d-bus --with-qt3support

Install KDE applications

brew install kate
brew install kdevelop
brew install kdevelop-ruby
brew install ...

Launch D-Bus

mkdir -p ~/Library/LaunchAgents
# substitute Cellar/d-bus/1.8.0 below with your actual dbus installation dir
ln -s /usr/local/Cellar/d-bus/1.8.0/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents
launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist

Update system configuration:

  • relogin or restart your system
kbuildsycoca4 --noincremental
update-mime-database /usr/local/share/mime
update-mime-database /usr/local/kde4/share/mime

Create application links (so that Finder and Launchpad see KDE apps):

brew linkapps

Run KDE apps from Launchpad or from command line:

open /Applications/kdevelop.app

Troubleshooting

  • if kbuildsycoca4 never finishes, then stop dbus, remove its lock file (run env | grep DBUS to find out where it is) and start dbus again
  • if dbus fails to start, check whether you have /usr/local/etc/dbus-1/session.d directory
  • sometimes after App Store run upgrades, DYLD_LIBRARY_PATH will be reset, then some plugins will fail to load, run launchctl setenv DYLD_LIBRARY_PATH /usr/local/kde4/lib:$DYLD_LIBRARY_PATH in terminal to fix
  • if kbuildsycoca or any other KDE app hangs during start, upgrade d-bus or recompile dbus from sources (installations from bottles was broken at some point, it was missing important configuration files): brew uninstall dbus && brew install dbus --build-from-source



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap