Reply to topic

OSX sudo command doesn't work

as
Registered Member
Posts
6
Karma
0

OSX sudo command doesn't work

Fri Jul 19, 2013 7:35 am
Hello,

I wonder whether anybody can help me. I've downloaded the OSX installer. I then run the sudo command as indicated on the webpage (sudo update-mime-database /opt/calligra/share/mime kbuildsycoca4). The terminal reacts with saying that the command "update-mime-database" doesn't exist. If I fill in a space instead of a hyphen, the command "update" doesn't exist. Does anybody know what the correct terminal command should be to get Calligra working?

Thanks in advance
User avatar bcooksley
Administrator
Posts
18601
Karma
83
OS

Re: OSX sudo command doesn't work

Fri Jul 19, 2013 11:37 am
Does the executable /opt/calligra/bin/update-mime-database exist? Also, I believe the "kbuildsycoca4" mentioned in your command is quite likely a seperate command.

If so, try running this instead:
Code: Select all
sudo /opt/calligra/bin/update-mime-database /opt/calligra/share/mime
/opt/calligra/bin/kbuildsycoca4


System Settings and Device Actions KCM maintainer
Image
as
Registered Member
Posts
6
Karma
0

Re: OSX sudo command doesn't work

Fri Jul 19, 2013 8:52 pm
Thanks. I tried it.

I first did: sudo /opt/calligra/bin/update-mime-database /opt/calligra/share/mime
I got this message in terminal:
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'

Note that '/opt/calligra/share' is not in the search path
set by the XDG_DATA_HOME and XDG_DATA_DIRS
environment variables, so applications may not
be able to find it until you set them. The
directories currently searched are:

- /var/root/.local/share
- /usr/local/share/
- /usr/share/

After that I run: /opt/calligra/bin/kbuildsycoca4

That seemed to run without any further problems. I then tried to start any of the calligra applications, but without success. None of them would start. I guess therefore that the messages above (unknown media type) indicate that something is missing.

Would it help to reinstall calligra? Is there any other command I could try to run?

Thanks in advance
User avatar bcooksley
Administrator
Posts
18601
Karma
83
OS

Re: OSX sudo command doesn't work

Sat Jul 20, 2013 2:44 am
Those messages are not necessarily fatal in this case. How are you trying to start the various Calligra applications?
If you try using the terminal, is any relevant output printed out?


System Settings and Device Actions KCM maintainer
Image
as
Registered Member
Posts
6
Karma
0

Re: OSX sudo command doesn't work

Sat Jul 20, 2013 11:36 am
Hello - I just double-click the application, like I do with any other application in OSX, or I use an app launcher. The application reacts for a moment, that is, the focus goes away from the Finder (or launcher) window, but then, after ten seconds or so, the focus returns to the Finder window, and the application hasn't started.

Just for good measure I re-installed Calligra, and did the terminal command sequence again, but to no avail. I get the same messages and none of the apps will start.

I do note that the terminal message says:
Note that '/opt/calligra/share' is not in the search path
set by the XDG_DATA_HOME and XDG_DATA_DIRS
environment variables, so applications may not
be able to find it until you set them. The
directories currently searched are:

- /var/root/.local/share
- /usr/local/share/
- /usr/share/

Could it have to do anything with the above message?

Thanks in advance
User avatar bcooksley
Administrator
Posts
18601
Karma
83
OS

Re: OSX sudo command doesn't work

Sat Jul 20, 2013 11:39 am
Which applications are you trying to run?
Can you try launching them through the console manually, to see if any relevant output is printed out there?


System Settings and Device Actions KCM maintainer
Image
as
Registered Member
Posts
6
Karma
0

Re: OSX sudo command doesn't work

Sat Jul 20, 2013 12:33 pm
Hi - I've no idea how to run an app from the terminal. Reading your message, I just now tried it by dragging an app into the terminal window and pressing Return. The only response was a message saying that that app is a directory. So I need to add a command to it apparently but don't know what that should be. As for the apps that I try to run, they are all the ones included in the Calligra suite (calligraauthor, karbon, kexi, calligraplan, etc.).

Interestingly, I've just installed Calligra under windows via VMWare. The apps run after installation . (I still prefer to have it run as a native application on OSX, as it is slow, though.) During the installation process, I saw that the same commands were given in the Windows command window as I am instructed to run in the terminal under OSX. I also saw that the the same messages appeared (a number of unknown media types). It was too fast for me to be sure whether it also reported the same directory search issues, but I didn't think so. If I'm right, the unability to find the directories is perhaps the problem. I've no idea how to fix that though.

Thanks sofar
User avatar bcooksley
Administrator
Posts
18601
Karma
83
OS

Re: OSX sudo command doesn't work

Sun Jul 21, 2013 7:06 am
Okay - I'm not exactly sure how to start OS X applications from the terminal either unfortunately. I'll see if I can find the person who built the Calligra packages though, as they may be able to help.


System Settings and Device Actions KCM maintainer
Image
philacs
KDE Developer
Posts
26
Karma
0
OS

Re: OSX sudo command doesn't work

Sun Jul 21, 2013 7:11 am
Hi as,

What's your OSX version?
as
Registered Member
Posts
6
Karma
0

Re: OSX sudo command doesn't work

Sun Jul 21, 2013 12:28 pm
Good morning,

I'm running OSX 10.8.4 on:
Model Name: MacBook Pro
Model Identifier: MacBookPro8,3
Processor Name: Intel Core i7
Processor Speed: 2.2 GHz
Number of Processors: 1
Total Number of Cores: 4
L2 Cache (per Core): 256 KB
L3 Cache: 6 MB
Memory: 8 GB
Boot ROM Version: MBP81.0047.B27
SMC Version (system): 1.70f6

Regards
philacs
KDE Developer
Posts
26
Karma
0
OS

Re: OSX sudo command doesn't work

Mon Jul 22, 2013 2:15 am
I built the package long time ago, I think I missed some environment variable settings that I executed but not written into the install guide. I'm currently investigating packaging through homebrew, considering that package is outdated and calligra not very usable on osx at that time, I think you can wait for the new solution.
as
Registered Member
Posts
6
Karma
0

Re: OSX sudo command doesn't work

Mon Jul 22, 2013 5:59 am
Thanks a lot for the clarification. Would be great if an update of the install package would be possible. Thanks in advance for that. In what kind of timeframe could that be available do you think?
henshaw
Registered Member
Posts
1
Karma
0

Re: OSX sudo command doesn't work

Mon Jul 22, 2013 10:51 pm
Great news because I am having the same problem with installing Calligra on my Mac as well.
philacs
KDE Developer
Posts
26
Karma
0
OS

Re: OSX sudo command doesn't work

Wed Sep 11, 2013 12:03 am
Hi as and henshaw,

some homebrew formulas are ready for calligra. You can test it following the instructions here.
http://www.calligra.org/get-calligra/

file dialog not working because we used a stripped kdelibs which stripped too much, I'm porting all the file dialogs to system native ones.

 
Reply to topic

Bookmarks



Who is online

Registered users: atrox, Baidu [Spider], bcooksley, Bing [Bot], bshah, Exabot [Bot], garthecho, Google [Bot], ingwa, ken300, koriun, Majestic-12 [Bot], normcross, ooker, pholmes, TheraHedwig, vascobasque, Yahoo [Bot]