473,664 Members | 3,022 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to copy Symbolic link from linux to Windows

10 New Member
Hello Friends
I had built a library on Linux.
Now i want to copy the lib folder containing symbolic links to windows.
but when i copied those to windows each link is getting exactly the same memory as the original one.
For Example:
On Linux
lrwxrwxrwx 1 msingh named 18 Mar 14 16:58 libicudata.so -> libicudata.so.
36.0
lrwxrwxrwx 1 msingh named 18 Mar 14 16:58 libicudata.so.3 6 -> libicudata.
so.36.0
-rw-r--r-- 1 msingh named 10153924 Mar 14 16:58 libicudata.so.3 6.0

On Windows
-rwx------+ 1 msingh ???????? 10153924 Mar 14 16:58 libicudata.so
-rwx------+ 1 msingh ???????? 10153924 Mar 14 16:58 libicudata.so.3 6
-rwx------+ 1 msingh ???????? 10153924 Mar 14 16:58 libicudata.so.3 6.0

How can i rectify this problem.
Mar 21 '07 #1
8 17936
Motoma
3,237 Recognized Expert Specialist
This is the way it was intended to work. Windows doesn't support the use of symbolic links for files. If you are using a program such as FTP, instead of copying the link, the program will read the file (as symlinks are supposed to behave) and correctly upload the file it points to.
I may have a way to work around this, however, I would need to know more information about your usage of Windows and Linux, the programs you are using, and the reasons for copying the symlink itself.
Mar 21 '07 #2
Mini Singh
10 New Member
This is the way it was intended to work. Windows doesn't support the use of symbolic links for files. If you are using a program such as FTP, instead of copying the link, the program will read the file (as symlinks are supposed to behave) and correctly upload the file it points to.
I may have a way to work around this, however, I would need to know more information about your usage of Windows and Linux, the programs you are using, and the reasons for copying the symlink itself.

Hello Motoma
I am aware of the fact that windows doesn't support Symbolic links.
Actually I had built a ICU (International component for Unicode) library on linux as well as on windows.
But now i have to provide a directory for distribution to all platforms.
In that case i need to copy the lib folder from linux to windows to make that directory(for distribution) a full fledge one.
But it is not copying the link as it is as it was in linux.
if you have some solution.. then please let me know.
I have searched all through the net but i am getting only one answer that it doesn't support.
Mar 22 '07 #3
Motoma
3,237 Recognized Expert Specialist
One solution would be to copy the actual file that the link is pointing to.

Hello Motoma
I am aware of the fact that windows doesn't support Symbolic links.
Actually I had built a ICU (International component for Unicode) library on linux as well as on windows.
But now i have to provide a directory for distribution to all platforms.
In that case i need to copy the lib folder from linux to windows to make that directory(for distribution) a full fledge one.
But it is not copying the link as it is as it was in linux.
if you have some solution.. then please let me know.
I have searched all through the net but i am getting only one answer that it doesn't support.
Mar 23 '07 #4
Mini Singh
10 New Member
One solution would be to copy the actual file that the link is pointing to.
Hi Motoma
Are you aware of any other solution for the problem of copying symbolic links from linux to windows.
If yes than please let me know.

~Mini Singh
Apr 19 '07 #5
Motoma
3,237 Recognized Expert Specialist
I might be able to help more if you elaborate on the setup of your machine(s). Where is the windows partition in relation to the linux partition? Are they in the same machine? Are you using a system such as SMB or NFS to mount the partition, or are you using a tool such as FTP to place the files on the windows partition?
Apr 19 '07 #6
Mini Singh
10 New Member
I might be able to help more if you elaborate on the setup of your machine(s). Where is the windows partition in relation to the linux partition? Are they in the same machine? Are you using a system such as SMB or NFS to mount the partition, or are you using a tool such as FTP to place the files on the windows partition?
Linux Partition is not on the same machine.My login is mounted on linux.I connect to that machine through my login.i.e i am using NFS to mount the partiton.
Now after building that library on linux i need to copy the lib folders from 'Linux to Windows and here the problem arises.

If you need more explanation then let me know.
Apr 20 '07 #7
Motoma
3,237 Recognized Expert Specialist
You will not be able to create symbolic links on your Windows partition. You will have to deal with three copies of the file, or change your files to link against the original.

I am curious, what libraries are these, and what are you trying to accomplish by putting them on a Windows partition? Surely you will not be able to compile against them from Windows, and if you are merely trying to move them while preserving the structure you could use tar which will preserve the symlinks.
Apr 20 '07 #8
anaser
1 New Member
hello Motoma,

can you help me about following problem-



I am trying to compile openoffice.org in windows. I am using cygwin. When I give ./configure command then following message displayed-


*************** *************** *************** *************** ********
* *
* OpenOffice.org build configuration. *
* *
* The configure process checks your platform to see whether *
* you can build OpenOffice.org on it. *
* This process checks all pre-requisites and generates a file *
* containing the necessary environment variables. *
* Source this file after configure has ended successfully. *
* *
* Any warning that is generated during the configure process *
* must be taken into account since it can be a reason for *
* an unsuccessful build of OpenOffice.org *
* *
*************** *************** *************** *************** ********

*************** *************** *************** *************** ********
* *
* Checking the platform pre-requisites. *
* *
*************** *************** *************** *************** ********

checking for egrep... grep -E
checking for gawk... gawk
checking for gawk... /usr/bin/gawk
checking for sed... /usr/bin/sed
checking for solenv environment... default
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking target system type... i686-pc-cygwin
cygwin
checking Cygwin version... 1.7.5(0.225/5/3)
checking whether to enable crashdump feature... no
checking whether to use the standard non-optimizing compiler... no
checking whether to turn warnings to errors... no
checking whether to do a debug build... no
checking whether to build with additional debug utilities... no, full product bu
ild
checking whether to include symbols into final build... no
checking whether to strip the solver or not.... checking whether to enable nativ
e CUPS support... no
checking whether to enable fontconfig support... no
checking whether to enable filters for legacy binary file formats (StarOffice 5.
2)... yes
checking whether to use DirectX... yes
checking whether to use ActiveX... yes
checking whether to use ATL... yes
checking whether to use RPATH in shared libraries... yes
checking whether to include MySpell dictionaries... yes
checking which shell to use... configure: error: /usr/bin/gawk, awk, tar or gunz
ip is a cygwin symlink!
Native windows programs cannot use cygwin symlinks. Remove the symbolic
link, and copy the program to the name of the link.

------------------------------------------------------------------------

I found several solution in net and already implemented all but still facing the problem.

For example::I triyed with

cd /bin
rm awk.exe
cp gawk.exe awk.exe

and also for

gzip.exe / gunzip.exe;

For tar when I am running-

$ ls -l /bin/tar.exe

it shows-

-rwxr-xr-x 1 Naser root 317454 2010-06-29 18:48 /bin/tar.exe

followings are also installed-

Archive::Zip
XML::Parser
URI
LWP::UserAgent
Crypt::SSLeay
SOAP::Lite


I get stacked with the above error, please help me.



thanks.
Aug 12 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3464
by: Khue Pham | last post by:
Does anyone knows how to copy database from one server to another. By copying I mean literally everything, not just the database. I know we can dump the database from one server then reload it to another one. However, I have a specific need for this and here is my problem: I have my development server as of RedHat 9.0 and I install the combination of LAMPS (Linux+Apache+MySQL+PHP+SSL). I configure it works perfectly on my development...
1
2103
by: chris kittell | last post by:
Hi All, on db2 v8.1 for linux 32 bit redhat 7.3, when installing fixpak6,it's overwriting the symbolic link that I defined for the install directory, and proceeding to fill up my root partition. As far as I can tell, the only command in the ../installFixPak that might do it is the rpm itself...ideas? Thanks
1
6388
by: solarin | last post by:
Hi, I've developed a program under VS 6.0. I can compile it and run it, but when I try to debbug , all my breakpoints are dissabled and I can see the following messages: Loaded 'D:\prj\simulador HMS\Enviar Datos al sim\CMS\Debug\CMS.exe', no matching symbolic information found. Loaded 'ntdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic
3
2786
by: TK | last post by:
Hi, how can I check wether a file a symbolic link is? Thanks for help. o-o Thomas
4
3368
by: TK | last post by:
Hi, I have to know whether a typical file (under Linux) a symbolic link is (in the sense of the stat()-Funktion). How can I check it excactly? Thanks for help. o-o THomas
1
3480
by: Remote_User | last post by:
Hi All, .NET 1.1 doesn't support creating symbolic links to files, like in Linux? Can i use C# to make a file point to another file? Thanks.
1
8018
by: Remote_User | last post by:
Hi All, I am using .NET FW 1.1. Trying to create symbolic link(like in Linux)/file shortcut in the Windows sense across files programmaticaly using C#, could someone give me an idea if this feature is supported?
1
8352
by: amygrant1701 | last post by:
Hi, I've done this before so I don't see what I could doing wrong here. I'm running mysql 5x on freebsd. I'm using the default data directory of "/var/db/mysql" In there I have several dozen mysql datasbases that are functioning perfectly. I am trying to add a database which will be stored on a different drive, therefore the entry in "/var/db/mysql" should be a symbolic link
1
4629
by: sora | last post by:
Hi, I've developed a MFC program under VS 6.0. My debugger *was* working fine and I've used it often for my project. Then, one day, the errors below appear and they prevent me from using the debugger. I know that I get these warnings because the OS symbols arn't installed (a few of them loaded fine). As far as I can remember, I didn't touch anything that should mess with the debugger so I don't know how to fix it and I need to be able to...
0
8437
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8861
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8778
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6187
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5660
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4185
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2764
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2003
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.