macos-sierra

Adding syntax coloring to Xcode for unknown file extension such as “.tcl”

久未见 提交于 2019-11-29 08:50:58
I want to ask a question about Xcode syntax coloring (highlighting). I am working with files all the time .tcl files all the time and Xcode does not know extension and as default it opens them with "Generic" syntax coloring option. In this situation, "AppleScript" in the syntax coloring section will be very nice for files with .tcl extension to see all the colors for different things in the code. So, how can i add a new option for .tcl files or how can i change the "Generic" one which appears when i open a .tcl file in Xcode ? Is there any way to do it as defaultly open the .tcl files with

Payara/GlashFish won't start in NetBeans

你说的曾经没有我的故事 提交于 2019-11-29 08:11:10
I'm running Mac OS. I've set up the Payara server with NetBeans. And when I'll try to run the server it never shows the green 'dot' that indicates its online status, instead it shows the 'loading' dot forever. However, I can access it on http://localhost:4848 , but when I try to deploy an application to the server I get this error: GlassFish Server is running. Starting GlassFish Server Initial deploying slit-ee to /Users/christian/slit/slit-ee/dist/gfdeploy/slit-ee Completed initial distribution of slit-ee GlassFish Server, deploy, null, false /Users/christian/slit/slit-ee/nbproject/build-impl

How to extract contents from 'Payload' file in a apple macOS update package?

自作多情 提交于 2019-11-29 01:49:54
I am extracting macOS sierra update package - macOSUpd10.12.1.pkg using following command to /tmp/macosupd directory. pkgutil --expand /Volumes/macOS\ Sierra\ Update/macOSUpd10.12.1.pkg /tmp/macosupd I can see following packages are bundled inside the metapackage. -rwxr-xr-x 1 Distribution drwxr-xr-x 6 FirmwareUpdate.pkg drwxr-xr-x 5 FullBundleUpdate.pkg drwxr-xr-x 36 Resources drwxr-xr-x 6 macOSUpd10.12.1.pkg I am not able to extract contents of Payload file. For example when i try to extract the Payload of macOSUpd10.12.1.pkg, i get following error message: with tar: tar -xvf macOSUpd10.12.1

Could not reliably determine the server's fully qualified domain name for MacBook

邮差的信 提交于 2019-11-29 01:42:57
First time got a new MBP 2016. Trying to setup PHP,MySQL & Apache. Started Apache by using command sudo apachectl restart Then installed PHP by brew install php71 --with-httpd24 Also did following changes... # # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # DirectoryIndex index.html index.php SetHandler application/x-httpd-php ServerName dev-server Also, updated the same in host file /etc/hosts/ But, whenever I'm trying to Stop/Restart my apache by using command sudo apachectl restart or sudo apachectl stop I'm getting following errors. AH00557: httpd:

Valgrind on macOS Sierra

拟墨画扇 提交于 2019-11-28 19:09:16
I following this guide: valgrind installation guide After I have downloading the package, and I have run the sh script, but when I launch the make install command, it couldn't create the folder because it don't have the permission (even though I have used the sudo command). Furthermore I tried with brew but I have this error: valgrind: This formula either does not compile or function as expected on macOS versions newer than El Capitan due to an upstream incompatibility. Error: An unsatisfied requirement failed this build. Musen You can download Valgrind's latest version from their website .

Can't install mysql2 gem on macOS Sierra

我只是一个虾纸丫 提交于 2019-11-28 17:25:36
I'm setting up my development environment in the new macOS Sierra . First of all, I installed Rbenv , Ruby (2.3.1) , Homebrew and so the latest version of MySQL (5.7.15) . $ brew install mysql $ mysql.server start Ok, MySQL was initialized. Time to install the mysql2 gem... $ gem install mysql2 -- --with-mysql-config=/usr/local/Cellar/mysql/5.7.15/bin/mysql_config But it didn't work. 😞 Building native extensions with: '--with-mysql-config=/usr/local/Cellar/mysql/5.7.15/bin/mysql_config' This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension.

ImageMagick 7 with RMagick 2.16 on MacOS Sierra Can't find MagickWand.h

别等时光非礼了梦想. 提交于 2019-11-28 16:27:15
问题 I upgraded to imagemagick-7.0.4-3.sierra and now my previously installed RMagck 2.16 fails. I checked for MagicWand: $ find /usr/local -name MagickWand.h /usr/local/Cellar/imagemagick/7.0.4-3/include/ImageMagick-7/MagickWand/MagickWand.h So it seems to be there. Also I reinstalled and relinked pgk-config. Didn't help as well. Any ideas? 回答1: I have just encountered and solved this issue on a new Mac running Sierra. There seems to be no solution for ImageMagick 7 at this time. Uninstall

Trouble installing m2crypto with pip on OS X / macOS

天涯浪子 提交于 2019-11-28 14:07:50
问题 pip install m2crypto Generates the following output: building 'M2Crypto.__m2crypto' extension swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c swig -python -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/usr/include -I/usr/include/openssl -includeall -modern -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i SWIG/_m2crypto.i:30: Error: Unable to find 'openssl/opensslv.h' SWIG/_m2crypto.i:33: Error: Unable to find 'openssl/safestack.h' SWIG/_evp.i:12: Error: Unable to

RMagick installation: Can't find MagickWand.h

浪子不回头ぞ 提交于 2019-11-28 13:22:35
问题 Updating RMagick and Imagemagick is a painful expierence. I have updated the Imagemagick version on my mac (MacOS El Capitan Version 10.11.5) with homebrew for one project in Ruby 2.3 to 6.9.5-9 $ convert --version Version: ImageMagick 6.9.5-9 Q16 x86_64 2016-09-09 Now an older project in Ruby 1.8.7 refuses to work with the error message "this installation of RMagick was configured with ImageMagick 6.8.9 but ImageMagick 6.9.5-9 is in use". Thus I uninstalled "rmagick", but it can not be

PDFtk hanging on MacOS Sierra

别来无恙 提交于 2019-11-28 03:17:38
PDFtk Server seems to be hanging indefinitely on MacOS Sierra. Looks similar to the problem it had on El Capitan . I'm trying to run this command: pdftk test1.pdf test2.pdf cat output out.pdf verbose And am getting no output, just an indefinite hang. Same with every other command I've tried. PDFtk --version: pdftk 2.02 a Handy Tool for Manipulating PDF Documents Copyright (c) 2003-13 Steward and Lee, LLC - Please Visit: www.pdftk.com This is free software; see the source code for copying conditions. There is NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Has