MAC command git-tf not Found - xcode

Hello all.
I search a lot but nothing really help.
I'm using xcode 5 to develop IOS app, with Team Foundation Server 2013 via git repository. For the first 2 projects all was fine with git-tf commands series. But after that it gives me git-tf command not found ,it's somehow weird to stop working suddenly.
Any help will be appreciated
-bash: git-tf: command not found

You might search for any git-tf contents in your filesystem using:
sudo find / -name git-tf
Prepend sudo to avoid warnings about unsearchable folders. If git-tf can't be found you may decide to reinstall it, following the instructions on the project-page.
Otherwise you should check your $PATH-variable - as mentioned on the git-tf-instructions.

Related

Where would I find the equivalent of the monodevelop executable for Visual Studio for Mac in?

I'm trying to debug a problem similar to the following (except with Visual Studio for Mac) in a similar manner: Monodevelop - runs only using sudo
The root of my problem seems to be file permissions issues, as detailed here: https://forums.xamarin.com/discussion/88506/access-denied-to-packages-folder-on-macos
I'd like to try running it using sudo if nothing else, and potentially debug the issue with dtruss, but I haven't been able to locate the executable to trigger from the shell.
Where would I find it?
I found the VisualStudio app in /Applications/Visual Stuido.app/Contents/MacOS, and executing VisualStudio under sudo did resolve the issue of access to the packages folder. I will see what I can do to debug using dtruss though I've not used it before. Any tips would be appreciated
It looks like I can't really mimic the strace solution with dtruss because I have to use sudo with dtruss regardless. If anyone can point at a way of comparing the sudo and non-sudo execution on MacOS like they do here Monodevelop - runs only using sudo it would be greatly appreciated.
I tried the following but it's not allowed:
sudo dtruss sudo ./VisualStudio
I found the reason why I needed to use sudo to open Visual Studio for Mac. I incorrectly used sudo when I cloned the repository. I had used sudo because I was confused by the failed authentication message with TFS previously. After I removed the solution folder and re-cloned the repository without sudo Visual Studio for Mac worked correctly.
As a side note, the only way I was able to authenticate from Git to TFS was by enabling credential caching: https://confluence.atlassian.com/bitbucketserver/permanently-authenticating-with-git-repositories-776639846.html#PermanentlyauthenticatingwithGitrepositories-OSX

How Xcode7.2.1 support lua syntax highlight?

This tool seems not work now https://github.com/breinhart/Lua-In-Xcode
Is there a way to support lua syntax highlight in Xcode7.2.1?
I used that same github project.
The fix is to open a command prompt and run this:
rm -f /private/var/folders/*/*/*/com.apple.DeveloperTools/*/Xcode/PlugInCache*.xcplugincache
Then you should see it under Editor->Syntax Coloring->Lua.
Source: https://github.com/breinhart/Lua-In-Xcode/issues/4
EDIT: I've since added a fix to support Xcode 7, and also beta verisons (e.g. Xcode 8 beta) with the --beta flag. See: https://github.com/mrhappyasthma/Lua-In-Xcode. A pull request has been created, but it seems the original author does not actively maintain the pull requests.

DSS(Darwin Streaming Server) install failed on OS X10.10

I want to build a Darwin Streaming Server on my mac for iOS development test. But after taking the following steps which I searched from google, it fails all the time.
Method 1:
Download from http://dss.macosforge.org/ ->Mac OS X Install -> Streaming Server;
Install the dmg;
It tries to open http://127.0.0.1:1220/ but fails with "This webpage is not available ERR_CONNECTION_REFUSED".
Method 2:
Download the source code of 6.0.3 version;
$ tar xvf DarwinStreamingSrvr6.0.3-Source.tar
$ cd DarwinStreamingSrvr6.0.3-Source
$ wget http://www.abrahamsson.com/dss-6.0.3.patch
$ patch -p0 < dss-6.0.3.patch
$ ./Buildit
Then, it fails with the following words.
Darwin Streaming Server
I don't know your platform. I'll assume this is a Linux x86 platform.
Please edit the BuildServer script & PlatformHeader.h to add your platform.
Building for Darwin.x86_64 with gcc
xcodebuild DarwinStreamingServer
=== BUILD LIBRARY TARGET AtomicLib (Library) OF PROJECT StreamingServer WITH CONFIGURATION Development ===
Check dependencies
Jam is deprecated and has been removed; targets that use Jam must be upgraded to native targets. For more information on doing this, consult the Xcode documentation.
** BUILD FAILED **
The following build commands failed:
Check dependencies
(1 failure)"
I tried to run ./Install, it showed me
Unable to perform install
You must be logged in as root to install Darwin Streaming Server
and I don't know what to do now.
PS: I've installed Xcode on my mac and didn't find any available document about Darwin Streaming Server, or I missed it?
Hope for any help. Thanks.
Calios and Jessica, thank you for your answers. I'm running using OS Windows 7 and installing DSS 5.5.5 for windows, and I also meet the condition same as with you.
However, after I followed your instructions, it's not close enough with our needs, because the button will lose meaning in presentation.
So I started digging more information from another articles, and I found interesting perception from a developer at this article. He said the following:
Maybe this has something to do with the perl script which generates the web sites?*
So starting from Jens's perception, I tried to downgrade my Perl Script from version 5.26 to 5.8. This resolved my problem, the interface displays correctly as in the DSS Tutorial.
Right now I'm still working on testing the DSS function
I hope this solution will help others.
Well, finally I solved this issue with the help of my friend.
Here's the steps of solution.
I've given up compiling and building on my own and downloaded the dmg file.(version 6.0.3)
Install the dmg as directions.
Then, go to /usr/sbin in terminal and find streamingadminserver.pl and QuickTimeStreamingServer.
Run them.
Check if they're running with ps aux|grep streaming.
Open http://localhost:1220/parse_xml.cgi in Safari or Chrome. It will show some textfield and a button.
However, there's no words at all ! Go to /Library/QuickTimeStreaming/AdminHtml and edit setup_assistant2.html.
Find line 333 and change it from return "$message{$name}"; to return $name;.
Then it shows some understandable words, though not exact words.
Till now, it can be partly work. However, in some steps I mentioned above, for example, html editing step, I really don't know why the words just don't show and just have a try.
Save the exact steps I did here for memory. It will be wonderful if it can help anyone or anyone have some good idea about it.
Thanks.
#SouravGupta, I am a newbie for stackoverflow, so I could not add comment to reply your question.
I just installed DDS 6.0.3 on Mac OS X El Capitan. I hit the same problem you had. I found that ** return "$message{$name}"; ** is no longer in setup_assistant2.html. It is in parse_xml.cgi (/Library/QuickTimeStreaming/AdminHtml). Just search for "sub foundString". There were two return places there. You need to change both in order to make it work.
It seems that DDS web admin software has localization function. Html files only contain string keywords. It suppose to use that "foundString" function to get translated string from keywords. However, for some reason, it returns empty string here even if there is a "messages" file inside html_en folder. I could not spend more time to figure out why right now.
QTSS/DSS Web Admin 6.0.3 requires Perl version 5.16 and earlier. OS X 10.11 El Capitan installs both Perl versions 5.16 and 5.18, but it defaults to using Perl version 5.18.
In order to run QTSS/DSS Web Admin in OS X 10.11 El Capitan, you need to examine each of the Perl script (.pl) within the AdminHtml folder and change the line #!/usr/bin/perl to #!/usr/bin/perl5.16.

Issues Installing Foundation 5?

So I'm trying to make the switch from Bootstrap to Foundation , and I'm attempting to follow the instructions on this page (as I'm trying to install Foundation with Sass), but the instructions on the site are rather unclear to me - I've installed Git, Ruby and NodeJS but every time I get to the step
foundation new MY_PROJECT
I keep getting the error "Can't find Git, you can install it from http://git-scm.com/downloads except I've already installed it (and reinstalled it, twice actually) and I have no idea what to do to fix it. Perhaps someone could lay out the instructions from start to finish in more concrete terms so that I can understand?
Strangely enough, I reinstalled Git and found that you have to adjust Git's PATH option so that it runs Git from the Command Prompt (essentially, pick the second option on the "Adjusting your PATH environment" screen when installing Git).
Not entirely sure why I didn't realize that before, but it fixed the problem for me!
It is probably some kind of path issue.
You could also run Git Bash that was installed when you installed Git and then execute the foundation new MY_PROJECT command from there. It worked for me :)

Unable to build mercurial on OSX - Python.h not found

For what I've read I need Python-Dev, how do I install it on OSX?
I think the problem I have, is, my Xcode was not properly installed, and I don't have the paths where I should.
This previous question:
Where is gcc on OSX? I have installed Xcode already
Was about I couldn't find gcc, now I can't find Python.h
Should I just link my /Developer directory to somewhere else in /usr/ ???
This is my output:
$ sudo easy_install mercurial
Password:
Searching for mercurial
Reading http://pypi.python.org/simple/mercurial/
Reading http://www.selenic.com/mercurial
Best match: mercurial 1.5.1
Downloading http://mercurial.selenic.com/release/mercurial-1.5.1.tar.gz
Processing mercurial-1.5.1.tar.gz
Running mercurial-1.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_7RaTq/mercurial-1.5.1/egg-dist-tmp-l7JP3u
mercurial/base85.c:12:20: error: Python.h: No such file or directory
...
Thanks in advance.
I was struggling with this problem all day today.
I eventually discovered a site that claimed that all one needed to do was to reinstall Xcode, or install the latest version (4.3.2, as of this writing).
So I tried that. It did not help; not on its own. But then I went a step further: I fired up Xcode.app, and once I had done that, I opened the Xcode..Preferences menu item, and then go to the Downloads tab, and say that you want to install the "Command Line Tools"
Once I did that, and then re-ran easy_install (in my case I was trying to "easy_install dulwich" to satisfy a hg-git dependency), it was able to properly find Python.h for me.
Might depend on what version of Mac OSX you have, I have it in these spots:
/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h
/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h
Also I believe the version of python that comes with Xcode is a custom build that plays well with xcode but you have to jump through some hoops if you use another dev environment.
Are you sure you want to build Mercurial from source? There are binary packages available, including the nice MacHg which comes with a bundled Mercurial.

Resources