LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-11-2019, 12:07 PM   #1
Gandalf73
LQ Newbie
 
Registered: Dec 2017
Posts: 19

Rep: Reputation: Disabled
Try to compile pinentry-tty.c on Git bash windows


Dear all,
I have a curiosity.
I want to compile and testing the single tool (in object above)on Git Bash suite for windows SO and produce the .exe file.
I can try use it with gpg & vim.
What do you think about?
Can it be possible or the features are not compatible with Git Bash suite?
I thank you to all for suggestion.
Bye
A.
 
Old 03-11-2019, 02:33 PM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
What do you mean 'Git Bash suite for windows SO'?
 
Old 03-11-2019, 05:18 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Yes, please explain what you mean by "Git Bash suite for windows SO", it has no meaning at all to me.

It would be helpful to others if you would provide a better, more complete description of exactly what you are trying to do.

Please review the Site FAQ for guidance in posting your questions and general forum usage. Especially, read the link in that page, How To Ask Questions The Smart Way. The more effort you put into understanding your problem and framing your questions, the better others can help!
 
Old 03-11-2019, 06:06 PM   #4
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Git for Windows comes with bash, so I assume you're talking about. It doesn't come with a compiler, so I suggest installing MSYS2 instead.
 
1 members found this post helpful.
Old 03-13-2019, 11:27 AM   #5
Gandalf73
LQ Newbie
 
Registered: Dec 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thank to all guys!!!
I mean when I talk to "Git for Windows" a suite with bash and similar tool on cmd.
So taking into account that I test GPG & VIM on this suite, I try to install GCC compilier and I try to make the exe file from pinentry-tty.c for using in VIM editor.
Is it possible for you or I talk about to impossible steps?
Thank you to all for precious assistance.
A.
 
Old 03-13-2019, 11:42 AM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by Gandalf73 View Post
Thank to all guys!!!
I mean when I talk to "Git for Windows" a suite with bash and similar tool on cmd.
So taking into account that I test GPG & VIM on this suite, I try to install GCC compilier and I try to make the exe file from pinentry-tty.c for using in VIM editor.
Is it possible for you or I talk about to impossible steps?
Thank you to all for precious assistance.
A.
The text I've made bold seems to indicate what you've tried and failed to accomplish.

Still you'll have to give us a lot more information about your attempt.

1. Did you successfully install the GCC compiler? Will it compile and run at least a very simple executable like a Hello World example?

2. What errors did you encounter when you tried to compile pinentry-tty.c and can you also post that code for reference along with the errors?
 
Old 03-13-2019, 11:54 AM   #7
Gandalf73
LQ Newbie
 
Registered: Dec 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
Hello & a lot of thanks for your prompt reply.
I don't try yet to install the GCC on suite.
I don't know what kind of exact tool I can put into because I see a lot of specific suite.
I let you know when I complete the process.
Could you help me with a suggestion for GCC version that can be used on Git bash for Windows?
Thank you again for precious assistance
A.
 
Old 03-13-2019, 12:45 PM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
First of all git and the compiler does not depend on each other, so most probably if you could successfully install both git and compiler you can successfully build that tool.
But this is a linux forum, so we have probably no experience with all the tools available for windows.
Personally I would suggest you to use cygwin.
 
2 members found this post helpful.
Old 03-13-2019, 12:51 PM   #9
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I agree with pan64. Git Bash for Windows is merely a tool, not an environment. You do need something like cygwin to provide you with a Linux emulated environment so you can then use GCC from that as a command line option. Bear in mind that GCC for Windows will need to be a pre-compiled binary, (correction) or mostly likely will be a pre-compiled binary versus GCC tools that you would install under a full Linux distribution, be that compiling the tools, or installing using a package manager.

Once again, Git Bash is merely an available way to enter Git commands as you would normally from a command line. It is not a proper environment to use a compiler from.
 
1 members found this post helpful.
Old 03-13-2019, 03:25 PM   #10
Gandalf73
LQ Newbie
 
Registered: Dec 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thank you to all for helping me!
I saw that "Git Bash" includes Mingw64 shell and if I try to write on "emulated" shell the command tty I see "/dev/pty0".
So,if I compile the souce *.c on Cygwin environment,
do you think that it can be ok?
This pinentry version(tty) is used by me on "vim + gpg" into emulated bash avoiding graphical pop-up without control.
Thank you again for assistance
A.
 
Old 03-13-2019, 05:25 PM   #11
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
Originally Posted by Gandalf73 View Post
So,if I compile the souce *.c on Cygwin environment,
do you think that it can be ok?
This pinentry version(tty) is used by me on "vim + gpg" into emulated bash avoiding graphical pop-up without control.
Hmm, that's actually a tricky question. There might be enough differences in Cygwin's tty emulation that would prevent things from working, but on the other hand, there might not be. You'll have to try it and see.

If it doesn't work, you might be able to install git from Cygwin instead.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Gitpod git-bolts git-IDE onto GitHub for in-browser code git-editing LXer Syndicated Linux News 0 09-05-2018 04:50 AM
gpg and pinentry WyattOil Linux - Security 7 03-03-2012 03:15 PM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
[SOLVED] GnuPG2 -> no pinentry agambier Linux - Software 0 12-22-2010 03:07 AM
Pinentry timeout (ttl) on kMail/gnupg KidsWriter71 Linux - Security 1 03-04-2005 10:21 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration