w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
While Sending Html Mails from my web application Recieved Mails contains Symbols like &ldquo,&rdquo, ‘
Check with another constructor for htmlView: ContentType mimeType = new System.Net.Mime.ContentType("text/html"); var htmlView = AlternateView.CreateAlternateViewFromString(bodyMessage, mimeType);

Categories : Asp Net Mvc

error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file:
Your "A" system has a symlink from /usr/lib/libevent-1.4.so.2 to /usr/local/lib/libevent-1.4.so.2, system "B" does not. Chances are if you create it everything will start working. The command should be as follows. sudo ln -s /usr/local/lib/libevent-1.4.so.2 /usr/lib/libevent-1.4.so.2 As an alternative, you can add /usr/local/lib to your library path as a test by exporting "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib" as a temporary fix on system "B."

Categories : Linux

ffmpeg: error while loading shared libraries: libmp3lame.so.0: cannot open shared object file: No such file or directory
Fortunately, I stumbled across this similar question, and I was able to see that all I needed to do was look at the bin/release file from the buildpack I was using and make sure the correct PATH and LD_LIBRARY_PATH were set to match the config_vars in that file. I set them using the heroku config:set command. Apparently the config_vars are only taken from the apps first deploy. Anyway, hope this will save someone else some time down the road.

Categories : Python

java: error while loading shared libraries: libjl i.so: cannot open shared object file: No such file or directory
It will never work on that version of Debian, see this. If you must run 1.7 you'll need a soft-float OS, otherwise try the 1.8 preview release which is hard-float.

Categories : Java

error while loading shared libraries: libncurses.so.5:
If you are absolutely sure that libncurses, aka ncurses, is installed, as in you've done a successful 'ls' of the library, then perhaps you are running a 64 bit Linux operating system and only have the 64 bit libncurses installed, when the program that is running (adb) is 32 bit. If so, a 32 bit program can't link to a 64 bit library (and won't located it anyway), so you might have to install libcurses, or ncurses (32 bit version). Likewise, if you are running a 64 bit adb, perhaps your ncurses is 32 bit (a possible but less likely scenario).

Categories : Linux

gcc: error while loading shared libraries -> looks up wrong library version
Thanks guys, your comments made me look at the right place. This path made me suspicious: /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../x86_64-linux-gnu/bin/as I thought it must be a symlink to /usr/bin/as, but it exposed that /usr/x86_64-linux-gnu/bin was a complete copy of /usr/bin - not up to date and therefore with incorrectly linked binaries. I have no idea why a copy of the whole bin directory was there and was used by gcc in favor of /usr/bin. The compiler is running fine after /usr/x86_64-linux-gnu was removed. Edit: Better check comments before doing the same.

Categories : C++

jar: error while loading shared libraries: libjli.so [How to manually install Java 6]
I'm posting my solution on here in case anyone else runs into a similar problem and stumbles across this. I simply re-installed my OS, ran the steps again, and everything worked perfectly fine this time. I must have caused some sort of error on my machine as I ran the same exact steps too. Here is what I did to manually install Java 6 on a clean machine: Install Java 6(.bin format) from the Oracle website Give it executable permissons and execute it Add a jvm folder to usr/lib/ Move your Java 6 folder to usr/lib/jvm Link java/javaws/javac to usr/bin using the ln -s command Add your Java6 and Java/bin location to your path. For me its: export JAVA_HOME=usr/lib/jvm/jdk1.6.0_45 export PATH=/usr/bin:$JAVA_HOME/bin

Categories : Java

GCC 4.8.1, C++11, shared libraries and exception handling trouble
Finally I figured out the issue... D'oh. It was not that the exceptions were left uncaught! The call to std::terminate was made when the exception was being thrown out of a destructor, and that is not allowed by default in C++11. The actual issue I faced was this: Destructors and noexcept -- the compiler bug allowed me to stay unaware of the library bug...

Categories : C++

Python using ctypes with shared libraries that link to non-standard shared libraries
There is an undocumented parameter to gcc that allows you to set a path to a shared library: "-l:/usr/libname.so". Maybe ld will do what you want if you pass complete lib name to gcc, and you'll be able to run a choosen version of the library, e.g.: gcc (...) -l:/etc/directory/libssl.0.9.8 -l:/etc/directory/libcrypto.so.0.9.8

Categories : Python

Creating shared and static libraries using g++ (under Windows)
You need to prefix with the attribute : __declspec(dllexport)... all the features you want to expose. See this. Example for a C function: __declspec(dllexport) int __cdecl Add(int a, int b) { return (a + b); } This can be simplified using MACROS: everything is explained on this helpful page. For C++ classes, you only need to prefix each class (not every single method) I usually do it that way : Note : The following also ensures portability... Include File : // my_macros.h // // Stuffs required under Windoz to export classes properly // from the shared library... // USAGE : // - Add "-DBUILD_LIB" to the compiler options // #ifdef __WIN32__ #ifdef BUILD_LIB #define LIB_CLASS __declspec(dllexport) #else #define LIB_CLASS __declspec(dllimport) #endif #else #define L

Categories : C++

How to build executable and shared libraries in same cmake project on windows/msvs
see [g-makulik] answer : In this case, this message means that dll is not found and that is why application crashes. One solution is to say to cmake to put dll and executable in same directory, in bin for example : SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) This convention is used in libraries like Qt for example.

Categories : C++

Trouble Installing ImageMagick for Windows
That video has a bunch of unnecessary stuff if all you want to do is get ImageMagick working as a standalone product on Windows. All you need to do is: Download latest Windows binary from imagemagick.org. Right now, that file is located here. Run the installer (leave all default values the way they are) Open a command prompt (Start --> Run --> cmd.exe) Navigate to the ImageMagick folder in the command prompt window. For the default install path, this is done as follows : Change to the root directory of the C: drive (type cd followed by the enter key) Change to the ImageMagick folder (type cd "Program FilesImageMagick-6.8.6-Q16" followed by the enter key) Test that it's working with the convert command: convert imageslogo.jpg logo.gif Look at the directory listing and check the for a l

Categories : Ruby On Rails

Trouble installing wxWebConnect on Windows
Don't use wxWebConnect, it's a really bad choice by now. Get wxWidgets 2.9.4 or the upcoming 2.9.5 and use wxWebView included in it.

Categories : C++

Rails installing mysql - Error installing mysql2: ERROR: Failed to build gem native extension
I've been so annoyed by the same problem, and finally succeeded in installing mysql2. Kudos to odiszapc@github. It appears any other solution I've found via Google than below doesn't work to me. Copied and pasted from here. So no credit to me. gem uninstall mysql2 Download last MySQL connector from http://cdn.mysql.com/Downloads/Connector-C/mysql- connector-c-noinstall-6.0.2-win32.zip Extract it to C:connector-6.0.2 gem install mysql2 --platform=ruby -- '--with-mysql-lib="C:connector-6.0.2lib" --with-mysql-include="C:connector-6.0.2include" --with-mysql-dir="C:connector-6.0.2"' Additional info on mine. ruby 1.9.3p392 (2013-02-22) [i386-mingw32] Rails 3.2.13 MySQL Server 5.6 mysql2-0.3.13 P.S Even if you successfully installed mysql2, you may still need some work (e.g. mysql2

Categories : Mysql

Static libraries and shared objects, are symbols shared?
The code and global/static data of static library will be injected into each module which links it. So for your case, there are multiple LuaeClass::converters instances exist in your project. And you need to call luaopen_battery() in each module which links the static library. I am not sure if your crash has anything to do with static link, but I am quite sure you went to a complicated implementation. The first issue you want to address is safely converting void* to A*, B*, C*. Which class/interface you want to export to Lua? If it's class C, you can define below methods in class C: void pushThis(lua_State *L); static C* getThis(lua_State *L, int idx); Both methods use C*, so you don't need a convert function. You can use meta table to distinguish your pointers from other userdata. If

Categories : C++

Error when loading javascript libraries
Ensure that the javascript files jquery.min.js and jquery-ui.min.js are in the correct path as specified in head tags :js/libs/jquery-1.8.3/jquery.min.js and js/libs/jqueryui-1.9.2/jquery-ui.min.js

Categories : Javascript

Having trouble installing newest version of Python: make error?
There is nothing wrong with the Python archive, it must be your environment. I reproduced your exact steps on my system and it runs on my system. I think the -Werror switch is to blame. It will turn warnings into errors. What your compiler actually encounters is merely a warning. Can you type in the same terminal echo $CFLAGS and post the output? On my system, this command will produce an empty line. Maybe you have some CFLAGS set in your ~/.bashrc? Or maybe you do source a file in your ~/.bashrc which sets CFLAGS?

Categories : Python

Installing Pip-3.2 on Cygwin
If you have more than one python installation, then you need to install pip (and probably also setuptools) for each installation separately. To do so, you can first download ez_setup.py and run it with python3: /usr/bin/python3 ez_setup.py That should install setuptools, and also create an easy_install script for your python version, e.g. /usr/bin/easy_install-3.2, which you can use to install pip: /usr/bin/easy_install-3.2 pip This will install pip into your python3 site packages directory, and again create a script /usr/bin/pip-3.2, which you can use to install packages for this python version. Alternatively you can follow the install instructions from here and here.

Categories : Python

Running multiple jQuery libraries in parallel - how to tell if all libraries are loading?
It sounds like you are using some kind of CMS which perhaps loads jQuery? If so maybe look at the documentation for that to see how it loads jQuery? Can you put an alert() in the 1.9.1 library and see if you see that? A bit basic I know but.. I don't think noConflict is your answer; it just returns $ to anything else using it. $().jquery; will give you the version so maybe you can use that in your code to check for which version is being used at the point it is being used? This question seems to address managing more than one jQuery instance with different variable names for each version: Can I use multiple versions of jQuery on the same page? This is a little tool which allows you to use a specific version of jQuery specifically for use with certain plugins etc: https://github.co

Categories : Jquery

Installing Python 3.3 on Cygwin
Building Python on Cygwin is not trivial -- I tried. However, the Python community on its bug tracker website is unusually friendly and gentle for a project its size and importance. If you find specific issues, open bugs and follow the discussion. Usually, they will accept tiny patches to fix Cygwin build issues. This patch will solve your first problem about si->si_band. See related Python issue #21085. This blog post (in German) is amazing. It will walk you through step-by-step how to build Python3.4 and fix all Cygwin issues. Good luck. You will need it.

Categories : Python

Installing Perl module on cygwin (make failed)
Generally, you must use the same compiler for XS that was used to compile Perl. You can try to force the one you have and see what happens: cpan> look Digest::SHA1 Digest-SHA1-2.13$ perl Makefile.PL CC=/usr/bin/gcc LD=/usr/bin/gcc Digest-SHA1-2.13$ make ; make test ; make install

Categories : Perl

Trouble with starting Node.js from a Cygwin console
I think this is caused by using the win distro in cygwin , since cygwin emulates a *nix environment and node.js for windows looks for the win libraries not the nix ones. In order for node.js to work in cygwin you have to build it yourslef. Also latest versions do no work on cygwin. https://github.com/joyent/node/wiki/Building-node.js-on-Cygwin-(Windows)

Categories : Windows

M2Crypto Error Installing on Windows
Putting this in answer format: You could try to install a binary build from http://chandlerproject.org/Projects/MeTooCrypto from mata's comment that resolved OP's issue

Categories : Python

Error installing karma on Windows 7
I ended up uninstalling node. Then used chocolatey to install it. That gave me a couple of errors but as I debugged, it turned out that for some reason, the npm config file had the wrong registry address to look up the packages. So when I executed npm install -g karma it would try to connect to the registry and couldn't. After fixing the address, everything worked smoothly. I was starting to question if my previously installed programs had changed any system config files or network settings. Evidently, there was no proxy issue encountered.

Categories : Node Js

Error installing cucumber in Windows 8
In your error is the supposed answer. It looks like you're on Windows, you need some form of compiler to build the native-code portion of them gherkin gem. This link discusses what's going on. and Here is a link to the DevKit installers, it looks like it's a MinGW-based system (basically GCC on Windows). edit: Whoops, looks like you installed the DevKit. Sounds like you skipped or incorrectly performed a step and it can't find it, not really a Ruby issue.

Categories : Ruby

Error trying to installing django non-rel on windows 7 system
DatabaseOperations is defined by django, and used by djangotoolbox and djangoappengine. Looks like the code in djangoappengine is not matching the code in django. Make sure you have the appropriate versions of each installed. My guess is that you have the latest djangoappengine but not the latest version of djangon-nonrel.

Categories : Django

Error in installing mysql using macports
That article is obviously a bit antiquated. The modern preferred way to start a daemon installed with MacPorts is by using the port load command. sudo port load mysql5-server Stop it by using port unload.

Categories : Mysql

error installing c++ mySQL connector
Instead of trying to make it work with the dynamic libraries that were found under : /usr/lib64/ (I had any libraries because I've ran : yum install boost) I've decided to try with static ones. After I've downloaded boost : I just had to point to the parent directory : cmake . -DBOOST_ROOT:STRING=/home/boost_1_54_0/ and the cmake finished without a problem. One might try to make the cmake process work with the dynamic libraries, but the CMakeLists.txt file should be edited accordingly. for example SET(Boost_USE_STATIC_LIBS TRUE) should be changed.

Categories : Mysql

Qt 5: shared and static libraries
I am currently using Qt on Windows 7 in the (almost) exact configuration as you described. Only thing is that you will have to create 2 different compilation Kits for each purpose. For static compile I have mingw32 compiler and for shared compile I have MSVC2010 32 bit SDK. EDIT: Yes I have a statically built version of Qt 4.8.4 (qmake) and I have a Qt 5.0.0 MSVC2010 32bit (SDK) (normally built). I have created 2 separate 'Kits' using these two versions and having different compilers as mentioned. You need to include the following line to the .pro file. It gets ignored during shared build. #CONFIG += staticlib

Categories : Qt

C++ static and shared libraries
The idea of a static library, is that you write your code as usual, but you compile it as a static library. The users of a static library still need your header files, but they don't need your .CPP files anymore, because the actual implementation is contained in your static library file. To use a library, you include the header files you need, and then link the library file with your program. Here is a link to the microsoft walkthrough. http://msdn.microsoft.com/en-us/library/vstudio/ms235627.aspx How to create and use a static library using Visual Studio Here is excactly how you do it in Visual Studio 2012. To create a library, create a new C++ project. In the wizard, at Application Settings, choose Static library. Uncheck Precompiled header. Create your library as you want. Don't f

Categories : C++

QtCreator (2.8.0), using shared libraries
Hard to say from the information you gave. Surely Windows does find the dll if you put its path into PATH. But maybe your dll uses another dll, which is not in the normal search path? You might want to try the dependency walker: http://www.dependencywalker.com/ If your dll is based on Qt it might be that it does not find necessary qt plugins. Check this out: http://qt-project.org/doc/qt-4.8/deployment-windows.html#application-dependencies Qt 4, but Qt 5 is the same in this regard.

Categories : Qt

Error enabling SSL while installing cassandra(DataStax Community Edition)on Windows
What version of openssl did you install? That error is indicating the openssl command complained about a syntax error. OpsCenter specifically requires openssl 0.9.8 on windows. http://www.datastax.com/docs/opscenter/configure/configure_ssl#enabling-ssl-windows

Categories : Ssl

`mrt add` throws unknown error when installing Atmosphere packages with Vagrant on Windows
I think that's the problem. Meteorite 0.6.0 uses symlinks but Windows can't handle it. Try copying the sass folder into packages instead of making them symlinks. Some packages you will need to copy with cp -rL

Categories : Meteor

Error While Installing MYSQL Gems in Ruby
Actually we should have the native development libraries when installing native extensions. For ubuntu it is libmysql2-dev, the same way find what is the dev lib for windows and install it. That could be solve your problem

Categories : Mysql

Including Shared Libraries (.so) with CMake
Shared libraries are linked dynamically. That means that your OS will automatically look for and load the .so files when the time comes to run the application. You only need to tell cmake the name of the library and the OS will take care of the rest. For example, if you want to link to the dynamic library for libSDL.so, you just say: target_link_libraries(${PROJECT_NAME} SDL) As a sanity check, your linker will look to make sure that the SDL library does exist on your computer. That's why you might get a linking error if that library is not available at link-time, even if it's really a dynamic library.

Categories : C++

What is the correct way to link against shared libraries?
The most usual name of libraries in Linux is: The real library is libasound.so.2.0.0. The last 3 numbers is the library version (major.minor.revision). libasound.so.2 is a symbolic link to the preferred (latest) 2.* version of the library, should you have more than one installed in the system. It is assumed that all the 2.* version are backwards binary compatible. libasound.la is a text file with a lot of information about the library to be used with libtool. Useful if you use libtool and the other autotools. libasound.so is a symbolic link to the library to be used by the toolchain. This is the file looked for when you link with -lasound. You are missing the last one, maybe because in debian based systems it is installed only with the libasound-dev package. You can simply create it ma

Categories : C

Why can shared libraries be located as one user, but not as another?
Check your LD_LIBRARY_PATH environment variable. echo $LD_LIBRARY_PATH You may find that your user has a different path than for the other user. You may need to set (or update) this variable for the user that can't find the library.

Categories : C++

Compile Ada sources without the shared libraries
Have a look at dlopen() library set of functions. You'll need to load the libraries from the source file itself. The following code is in C, but you can use Interafaces.C in Ada to interoperate with C libraries: lib_handle = dlopen("/opt/lib/libctest.so", RTLD_LAZY); if (!lib_handle) { fprintf(stderr, "%s ", dlerror()); exit(1); } Visit this link for help. This man page dlopen(3) should also help.

Categories : Gcc

Building shared libraries in subdirectories
callable.c #include <stdio.h> int main(int argc, char **argv) { printf("Hello World "); return 0; } To get a .so file from the C file callable.c use R CMD SHLIB callable.c So now we have callable.so R normally requires that all C arguments be pointers, but if your main method ignores argc, then we can get around this. So to call main from callable.so from R we can write a method like so. main <- function() { dyn.load("callable.so") out <- .C("main", argc=0, argv="") } Calling that main function will run the C main function.

Categories : C

"The installer has encountered an unexpected error installing this package...". Is it possible to install Node.js (v0.10.15) on Windows XP?
So, I figured out how to install it :) I did a double click on node-v0.10.15-x86.msi file in order to install Node. And that caused an error. .msi files shouldn't be installed that way. I found a solution on this page http://thebackroomtech.com/2007/08/23/howto-extract-files-from-a-msi-file-using-the-windows-command-line/ So my steps in Windows command line. I pointed a directory where to unpack node-v0.10.15-x86.msi to: C:>msiexec /a "C:DownloadsProgramsNode.js ode-v0.10.15-x86.msi" /qb TARGETDIR="C:Program Files odejs" And now it works. It unpacked Node.js and all its dependencies to C:Program Files odejs. I just added the directory to PATH. I'm glad I can use Node on Windows. Working under Ubuntu is a pain.

Categories : Node Js



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.