LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-01-2011, 06:37 PM   #1
ostridge
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Rep: Reputation: 0
Cygwin - getting started - bash needs env variables to point to libs etc.


Hi all,
I'm v.green to linux. Installed Cygwin (all) on Win7 because I wanted to compile downloaded tar of gen-mc.c (prog which is to create a Mini Certificate etc. for PAP2T)this has two files for make instructions one 'for linux' one not.
linux one says to
cc gen-mc.c -o gen-mc -lssl -lcrypto -lz

so far so gd. but when I type this into bash - bash cant find the libs e.g unix.h

How do I simply set up the variables (paths) perhaps with a bash.sh to point cc to the relevant libs.

This my first post so best to ask a real get me started query and as its Cygwin you only have General.

I am used to windows incl. server and networking and need a push in right direction so I can try figure it out.
Best regards to all
Ozz or John
 
Old 12-01-2011, 07:53 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I'd never compile anything on cygwin.

This is the script that should be a start.

http://pastebin.com/mp5r6iqi

There may or may not be an easier way too. If it is a similar type of self signed certificate then you may have an easier time with that. I don't know the PAP2 certificate.

I'd think about running a small linux distro full install and add in as you need. A small virtual machine would be fine. Many pre-made images are out there ready to run.

Last edited by jefro; 12-01-2011 at 07:56 PM.
 
Old 12-14-2011, 08:59 AM   #3
ostridge
LQ Newbie
 
Registered: Nov 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Jefro, Thanks for that and the prompt reply, following yr post I've now installed Fedora 16 on VMware Player, and starting to learn about that. Still needing to set up some paths or ln -s ? so compiler finds headers etc. and struggling on.
Regards
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
changing env variables aceone Red Hat 7 06-25-2012 06:13 AM
setting env variables. mannclay Programming 11 03-27-2009 08:14 PM
Getting env variables in X wild_oscar Linux - General 3 04-29-2007 09:49 AM
env variables AbrahamJose Solaris / OpenSolaris 4 04-18-2006 12:31 PM
env variables ekdya Debian 3 03-14-2006 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:30 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