Cygwin and PuTTYCyg /bin/sh: No such file or directory - cygwin

Somehow I messed up my cygwin install so i cannot use PuTTycyg to connect to it. I get this error:/bin/sh: No such file or directory What could I do to fix this problem?

The problem may be a conflict between the cygwin1.dll file supplied with PuTTycyg and Cygwin's own cygwin1.dll file. You can try copying the cygwin1.dll file from c:\cygwin\bin\ to the folder where you have placed PuTTyCyg.

Related

Install4j Linux installer not working

I made installers for my application, it works on Windows and Mac, but when I try to run the .sh installer file on linux, it fails with this error:
gzip: sfx_archive.tar.gz: not in gzip format
I am sorry, but the installer file seems to be corrupted. If you downloaded that file please try it again. If you transfer that file with ftp please make sure that you are using binary mode.
How can I solve this?
Thanks.
The error message describes the probable reason:
I am sorry, but the installer file seems to be corrupted. If you
downloaded that file please try it again. If you transfer that file with
ftp please make sure that you are using binary mode.
You probably transferred it to the Linux machine in such a way that the line endings were replaced or the installer script was truncated.
This may be because you opened the file in a text viewer, which can change some aspects of the file. Try redownloading it and running it without opening it.
chmod +x install_file.sh
./install_file.sh
I imagine the problem is that you're attempting to extract sfx_archive.tar.gz using tar with the z flag, and that it's not actually gzip compressed.
I would try substituting your current tar command with the following:
tar -xvf sfx_archive.tar.gz

How to use pdflib TET command-line tool

I just downloaded pdflib TET and can't figure out how to use the command line tool. I installed the .msi file but when I go to command line tet command is not recognized. Any thoughts?
Thanks!
Andrija
you have to go to the "bin" directory of your TET package and then you can call "tet.exe".
In addition, you can also use the full qualified path name to the "tet.exe".
or you add the bin directory to your PATH, or place the "tet.exe" to a directory within your path. then you can use "tet.exe" from all directories.

Installing GLPK

I'm following this link for installing GLPK which I intend to use to conduct some optimization. When I've downloaded GLPK, and added
C:\Windows\System32 and C:\Windows\SysWOW64
to PATH for environment variables and try to execute one of the example files (even by opening the cmd window in the file where the test file is located) by doing
glpsol --model assign.mod
It says that
glpsol is not a internal command, external command, program or command file.
When I open the command in the win64 folder (a subfolder of glpk) then I can do:
glpsol.exe --help
and get information. I can also see the glpsol programfile in the folder. However when I try to open a model somewhere on my computer it does'nt recognize glpsol. Isn't that why you add System32 into your PATH?
In the guide it says that
...Therefore it is suggested to copy the DLLs to %SystemRoot%nsystem32.
Is this something that you must do? Which are these DLLs? Can you do this using a command in the cmd file? I thinking that including System32 into the path does this?
I've added SysWOW64 into the path due to me using 64 Bit Windows 7. Not sure if it is the way to go though.
Hope someone can shed some light into this!
Regards,
To use glpsol outside of the dedicated folder you have to put the relevant files somewhere, where your System can recognize them (somewhere in the defined Path Environment)
The "DLLs" are just the glpk_X_XX.dll, for 64bit systems use the dll in the w64 folder and put it in the SysWOW64. Now your System will find the dll - but still not glpsol. Just copy the glpsol.exe in system32 for that, and voilĂ  your done.
Adding the GLPK Directory to the Environment Path should also work.

How to start with fbx-conv? "Command not found" issue

does anyone know how to use fbx-conv with mac? I downloaded the zip file here : http://libgdx.badlogicgames.com/fbx-conv/
The command line with fbx-conv-mac thePathOfMyFile did not work, it always says "command not found". Then the ReadMe file :
On Linux and Mac, we have to link to the dynamic libraries of the FBX SDK (libfbxsdk.so and libfbxsdk.dylib). We recommend copying libfbxsdk.so
to /usr/lib on Linux. Otherwise you can use LD_LIBRARY_PATH and set it to the directory you put the .so file.
I only have the .dylib file so I tried to copy it in /usr/lib with : sudo cp /Users/MyName/fbx-conv/libfbxsdk.dylib /usr/lib , it worked, the file was copied to this folder, but the command line fbx-conv-mac thePathOfMyFile still does not work: command not found.
Still in the ReadMe, it says :
Building
You'll need premake and an installation of the FBX SDK 2014. Once installed/downloaded, set the
FBX_SDK_ROOT to the directory where you installed the FBX SDK. Then run one of the
generate_XXX scripts. These will generate a Visual Studio/XCode project, or a Makefile.
On Google, with FBX SDK 2014, I found this link to download fbx-conv-master : https://github.com/libgdx/fbx-conv which looks like the folder with the good files, but I don't know how to use them, there are no fbx-conv for example.
Any help?
Thanks
OK I got an answer from the libgdx forum, on Mac the solution was to write ./fbx-conv-mac filePath instead of fbx-conv-mac filePath. It works for me.

Freeswitch mod_java installation problem

I am trying to install mod_java on ubuntu.
I have installed the latest java(1.6).
I have configured freeswitch with mod_java module enabled in module.conf.xml
then when i run the make file, it says:
freeswitch_java.h:5:17: error: jni.h: No such file or directory
I have searched through the java installtion folders, but did not find any include folder or jni.h.
Can anyone help, what is being the problem here.
Thanks for reading this question.
I had the same problem. The solution was to run configure with the option --with-java:
./configure --with-java=/usr/lib/jvm/java-1.6.0-openjdk/include/
I don't know if it makes any difference but I added mod_java after building freeswitch without it. It was disabled in my initial build in module.conf.xml but afterwards I ran the above command plus:
make mod_java-install
It worked for me on ubuntu with openjdk. Are you using the Sun JDK? Maybe in the version you have dont have the include folder which has the source files. Try installing the other JDK. Or try and see of ther are some other related packages in apt that will get you the include folder.
Type this linux command to locate your jni.h file on your filesystem.
locate jni.h
you should be able to get it somewhere
in /usr/lib/java directory or some other directory
depending upon your java home.
copy paste the jni.h in src/include folder of your freeswitch src.
It will throw you some more errors for different .h files
just copy all of them to your src/include folder.
in latest freeswitch, installing through Makefile, its not possible to configure as the Makefile downloads and installs. Its possible by modifying the Makefile.in file to add the include path
mod_java_la_CPPFLAGS
-I/usr/lib/jvm/default-java/include \

Resources