手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表分类:苹果相关

Pentaho data integration(kettle) 在mac上无法运行

Pentaho data integration ,从官方下载下来最新的安装包,解压之后,双击Data Integration,报安全问题,询问是否打开,同意并输入自己的开机密码。然后,等了几秒,发现没有任何反应,再次双击Data Integration,依然没有任何相应。

以为程序不兼容。但想想不应该,搜了一下,发现可能是权限的问题,说是直接运行 spoon.sh 可以运行。试了一下,确实OK。但不可能一直这样执行。继续找解决方案,最后居然是这么简单,运行一下:

XML/HTML代码
  1. sudo xattr -dr com.apple.quarantine ~/Downloads/data-integration/Data\ Integration.app  

这个问题在2017年就有人遇到了,看这里:https://edpflager.com/?p=3571,参考 一下即可。

现在,程序终于可以运行了

最后附上一堆教程:

1、https://www.staroon.dev/2018/07/18/KettleDoc-1/

 

 

VNC远程连上MAC后,安全隐私中的"允许"无法点击

如题。

在远程的mac mini上安装了proxifier,结果启动的时候需要权限,明明点了:ALLOW,但死活无效,查了下资料,好象是苹果的安全策略的问题,v2ex上也有很多人遇到,有人说,可以用键盘来按。(即使用TAB键,将光标移动到allow上,然后按空格,),但我试了。无效
 
很多人遇到了这个问题,大意是说,苹果为了安全,不允许远程桌面来按这些影响到系统的功能键。不过还是有人有办法,比如这个答案:
  1. For those still struggling with this issue:  
  2.   
  3. IF YOU ARE CONNECTING VIA REMOTE DESKTOP OR SCREEN SHARING or have any other mouse emulation running: It is not possible to actually click the Allow button in this mode!!  
  4.   
  5. So do the following:  
  6.   
  7. 1、Run the installer until the location prompt  
  8. 2、open System Preferences  
  9. 3、Take a screenshot (CMD+SHIFT+3)  
  10. 4、Open the screenshot with Preview, and select from top left to the button, and note down the coordinates  
  11. 5、Then open Script Editor, and run the following line of code:   
  12.     tell application "System Events" to click at {890, 460}  
  13. Use the coordinates from step 4. and make sure you don't move the Preferences window, and that no other window is overlaying the button. (It could be you need to give Script Editor Accessibility permission, but it will prompt you)  
  14. Now the button is actually clicked, and you can allow "Oracle America, Inc." to install. You might be prompted for a reboot. Then run the installer again and everything should work as expected!  
因为这之前的例子,都是说virtualbox安装不上,但原理其实是一样的。
上面的意思是,你先触发这个窗口。然后利用cmd+shift+3这个系统快捷键截屏。然后用预览软件打开这个图片,在上面进行选择:从左上角往下。最后那个选择框定位点在哪里,那个坐标值就是步骤5要填写的
然后打开script editor(在实用工具里),输入tell application "System Events" to click at {890, 460},这个坐标就是用预览所看到的。
将窗口拖开,让 system preference 在最上层,点击script editor的运行。你会发现 allow已经点掉了。。。(前提是先解开锁,不然还是没有权限点)
 

mac finder中的cmd+x/cmd+v

 如果直接在finder中cmd+x/cmd+v,是没有任何作用的。原来一直以为只有cmd+c/cmd+v,然后再去删除原来的。或者。。。。拖动文件

其实,cmd+c/cmd+option+v,就相当于剪切了!
这个快捷键,从Lion版开始就有了,只是之前真心不知道。

Error: Calling needs :cxx11 is disabled! There is no replacement.

brew 安装个软件,没装成功却开始报这个错了:

Already up-to-date.

Error: Calling needs :cxx11 is disabled! There is no replacement. 

Please report this to the chrisdeeming/legacyphp 

tap: /usr/local/Homebrew/Library/Taps/chrisdeeming/homebrew-legacyphp/Formula/php@7.0.rb:41

我晕。现在都7.2了,这个源还报错?看了下官网。原来这个源不再需要:needcxx11了。OK,官网说重新brew update一下就好了。

重新brew update。恢复正常

1、https://github.com/chrisdeeming/homebrew-legacyphp/pull/4

2、https://github.com/chrisdeeming/homebrew-legacyphp/issues/2

简易重启mac 下的mamp pro

 简单的弄一下。因为有时候要改配置,然后打开mamp,点击重启会耗时特别长。。。。所以简单的弄了一下

XML/HTML代码
  1. #!/bin/bash  
  2.   
  3. function start(){  
  4.     /Applications/MAMP/Library/bin/httpd -f "/Library/Application Support/appsolute/MAMP PRO/conf/httpd.conf" -k start  
  5. }  
  6.   
  7. function stop(){  
  8.     /Applications/MAMP/Library/bin/httpd -f "/Library/Application Support/appsolute/MAMP PRO/conf/httpd.conf" -k stop  
  9. }  
  10.   
  11. function restart(){  
  12.    (stop)  
  13.    (start)  
  14. }  
  15.   
  16. function status(){  
  17.     ps aux|grep httpd  
  18. }  
  19.   
  20. echo "which do you want to?input the number."  
  21. echo "1. start"  
  22. echo "2. stop"  
  23. echo "3. restart"  
  24. echo "4. status"  
  25. read num  
  26.   
  27. case "$num" in  
  28. [1] ) (start);;  
  29. [2] ) (stop);;  
  30. [3] ) (restart);;  
  31. [4] ) (status);;  
  32. *) echo "exit";;  
  33. esac  
其实没啥难度就是这么几行代码。连路径都没有定义变量。但一般情况下够用了,复制不成功的,可以直接打开://neatstudio.com/mamp.txt
 

Tags: mamp