LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Cygwin - getting started - bash needs env variables to point to libs etc. (https://www.linuxquestions.org/questions/linux-general-1/cygwin-getting-started-bash-needs-env-variables-to-point-to-libs-etc-916648/)

ostridge 12-01-2011 06:37 PM

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:scratch:

jefro 12-01-2011 07:53 PM

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.

ostridge 12-14-2011 08:59 AM

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


All times are GMT -5. The time now is 02:24 AM.